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:
- heroku may change how auto detect apps in future, breaking deployment.
- you might missing out on configurations / optimizations doing (see article linked above).
Comments
Post a Comment