I'm using ES6 with babel-node to create my app and I require my app to start with the command babel-node app.js
. This command is listed in scripts: start in my package.json so the command npm start runs the correct command.
Open shift starts node apps with node + what ever script is set in the main property of your package.json file. In my case its "main": "app.js"
. So this command is run node app.js
.
The server is choking on the first ES6 it encounters which makes sense. I can't figure out how to configure openshift to run babel-node
or npm start to start up my app.
Here is my package.json file -> https://gist.github.com/jkinman/2cc57ce5fae5817d6bca