Procfile on Node.js/Heroku -


i rereading tutorial https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction polish understanding of node.js/heroku.

there section called define procfile.

but when go see own apps check inside file. see number of apps (not all) have no such file , working fine.

so, going on? when procfile necessary? happens if there none? when better have one?

to started, heroku try automatically detect type of app , start appropriately, when doesn't have profile (see example here - http://blog.taylorrf.com/blog/2014/12/15/heroku-default-server/ ).

for example in node, if have index.js file , package.json file, it's node app started node index.js.

while convenient, considered bad practice, because:

  1. heroku may change how auto detect apps in future, breaking deployment.
  2. you might missing out on configurations / optimizations doing (see article linked above).

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -