I'm trying to set up a Node.js deployment on cloudControl, however my deployment fails and I have no idea why. The logs prompt me this error:
1/15/15 4:15 PM Info Failed to start container
My Procfile seems just fine however:
web: node server.js
I get no further explanation or stacktrace on why the container failed to start. The exact code I'm trying to deploy is on github: https://github.com/dunnkers/roosters-api
I'm using mongoose to connect to an external MongoSoup database. I'm however not using the addon for this. Could this by what's failing the deployment?
All ideas are appreciated!
You have to start your server on the port provided in the PORT environment variable. A look in the repository shows that you are looking for the OPENSHIFT_NODEJS_PORT.
Also a look into the error log (https://www.cloudcontrol.com/dev-center/Platform%20Documentation#logging) could provide you with more information.
There is no need to use the provided addons, you can use whatever backend you prefer. Choosing one of the addons simplifies the integration process by providing the necessary credentials as environment variables and a single point of support. But this is completely up to you