updates for OpenShift 3,

removing hooks
  setting default port to match node image

Testing for demo

Testing

Fix log message

Steve's fix

Removing localized change
This commit is contained in:
sspeiche 2015-04-14 10:52:57 -04:00
parent 8d63eca076
commit 47bc62e146
3 changed files with 1 additions and 7 deletions

View file

@ -1,3 +0,0 @@
#!/bin/bash
echo "OpenShift Pre-build"
sed -e 's/^ *"nodemon": "[^"]".*$//' -i $OPENSHIFT_REPO_DIR/package.json

View file

@ -1,3 +0,0 @@
#!/bin/bash
echo "OpenShift Pre_build"
sed -e 's/^ *"nodemon": "[^"]".*$//' -i $OPENSHIFT_REPO_DIR/package.json

View file

@ -18,7 +18,7 @@ var server = http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'}); res.writeHead(200, {'Content-Type': 'text/plain'});
res.write('This is a node.js echo service\n'); res.write('This is a Node.js echo service\n');
res.write('Host: ' + req.headers.host + '\n'); res.write('Host: ' + req.headers.host + '\n');
res.write('\n'); res.write('\n');
res.write('node.js Production Mode: ' + (nodeEnv == 'production' ? 'yes' : 'no') + '\n'); res.write('node.js Production Mode: ' + (nodeEnv == 'production' ? 'yes' : 'no') + '\n');