I'm trying to start my application with a different file; not app.js or server.js, and I don't want to add a start script to npm as there's several possible configurations for this application. In the elastic beanstalk console, under Configuration -> Software Configuration, there's a Node command setting, and I'm setting the value to the file I want, like:
eb_server.js
and also tried node eb_server.js
But in the nodejs logs on the app server (/var/log/nodejs/nodejs.log, I get this output:
sh: eb_server.js: command not found
My question is what's the proper way to set the alternative start script command using the elastic beanstalk console?