Reputation: 28177
I am trying to get started with Node.js
on Windows
.
All went good on localhost
, so I decided to try heroku
for hosting my app.
I followed this tutorial and everything goes well until the foreman start
part, saying that
'foreman' is not recognized as an internal or external command, operable program or batch file.
I have tried installing/uninstalling foreman
using npm
, but nothing changed.
I would appreciate any help as I have been stuck on this since yesterday
Upvotes: 8
Views: 3779
Reputation: 21
Use the command below to install Heroku globally:
npm install -g heroku
Start your app locally using the Heroku local command (which is installed as part of the Heroku CLI) by running:
heroku local web
Your app should now be running on http://localhost:5000/
Upvotes: 0
Reputation: 11
Heroku Local has replaced Foreman in the Heroku Toolbelt... Heroku Toolbelt installs will not come with Foreman. The command heroku local has replaced foreman. Heroku Local makes use of Forego to accomplish its tasks and it’s faster and has better cross-platform support. Foreman can still be installed manually if you want to use it.
$ gem install foreman
Upvotes: 1
Reputation: 3826
apparently "foreman start" is no longer in use. Instead you can go to the root directory of you application and type "heroku local web" to build the app locally. For more info you can take a look at their documentation here.
Upvotes: 4
Reputation: 37507
Foreman comes with the Heroku toolbelt - see http://toolbelt.heroku.com
Upvotes: 3