3 ms·
""""If you’re using some established framework, Heroku can figure it out. For example, in Ruby on Rails, it’s typically rails server, in Django it’s python <app
by davidbanham 13y ago
""""If you’re using some established framework, Heroku can figure it out. For example, in Ruby on Rails, it’s typically rails server, in Django it’s python <app>/manage.py runserver and in Node.js it’s node web.js."""
Been working in node for years now, have never named anything web.js. Why not index.js, server.js or app.js?
- deleted 13y ago[deleted]
- sksksk 13y agoYou define the start command in the package.json anyway, so presumably Herkou can just read that?
- tlrobinson 13y agoYeah I think that's a relic of their very early Node.js beta. Now they look for package.json (https://github.com/heroku/heroku-buildpack-nodejs/blob/master/bin/detect#L4 https://github.com/heroku/heroku-buildpack-nodejs/blob/maste...) and you define the command to start the app in the Procfile.
- jonmountjoy 13y agoDang - thanks for catching. Fixed.
- bradhe 13y agoDoes...it really matter?