In this step you will deploy the app to Heroku.
- Create an app on Heroku, which prepares Heroku to receive your source code.
heroku create
Creating sharp-rain-871... done, stack is heroku-18 http://sharp-rain-871.herokuapp.com/ | https://git.heroku.com/sharp-rain-871.git Git remote heroku added When you create an app, a git remote (called heroku) is also created and associated with your local git repository.
Heroku generates a random name (in this case sharp-rain-871) for your app, or you can pass a parameter to specify your own app name.
- Now deploy your code:
git push heroku master
- The application is now deployed. Ensure that at least one instance of the app is running:
heroku ps:scale web=1
- Now visit the app at the URL generated by its app name. As a handy shortcut, you can open the website as follows:
heroku open
- Check for Logs from Server
heroku logs --tail
- Run the app locally
heroku local web
- Deploying your app after making changes
git push heroku master
- Open the app on the broswer
heroku open cool
- Add configs
heroku config:set TIMES=2
- Renaming Apps
heroku apps:rename newname
#or
heroku apps:rename newname --app oldname
- Updating Git remotes only
git remote rm heroku
heroku git:remote -a newname