Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Upstart uses /bin/sh while running ‘by hand’ will use bash.
Try this:
start on startup
respawn
script
/bin/bash <<EOT
cd /opt/acc
export PORT=4321
export ROOT_URL='the ip here'
node main.js
EOT
end script
Source: http://upstart.ubuntu.com/cookbook/#changing-the-default-shell
thanks for the response.
The problem here is/was multiple version of node as well as multiple names ‘node’ vs ‘nodejs’. Ubuntu is a mess.
upstart couldn’t find the node app.
After many hours of trashing around with
apt-get --purge remove node
and installs. I finally got the single version of node required for this project (Meteor).