Please can the default file for Node be changed to app.js instead of index.js?
Seems many have the same issues and have to rename the file upon upload.
Just a suggestion.
Please can the default file for Node be changed to app.js instead of index.js?
Seems many have the same issues and have to rename the file upon upload.
Just a suggestion.
It depends on the host what file it expects. In most cases it is one of the following 3 names: index.js
, app.js
and server.js
. Perhaps it should become an project option since it can be different depending on where you publish it.
Would be very useful as you mention there are a few variations based upon hosting providers.
Thank you for your reply and input @patrick. Always appreciated. Have a great weekend!