One-click Heroku deployment is available:
- We need to install heroku on our machine. Type the following in your linux terminal:
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
This installs the Heroku Toolbelt on your machine to access heroku from the command line. For windows user, install from here
- Next we need to login to our heroku server (assuming that you have already created an account). Type the following in the terminal:
heroku login
(for windows user on cygwin or git bash:winpty heroku login
)- Enter your credentials and login.
- Once logged in we need to create a space on the heroku server for our application. This is done with the following command
heroku create
- Add nodejs build pack to the app
heroku buildpacks:add --index 1 heroku/nodejs
- Add python build pack to the app
heroku buildpacks:add --index 2 heroku/python
- Check nodejs and python build pack in the app
heroku buildpacks
It should return
- heroku/nodejs
- heroku/python
- Then we deploy the code to heroku.
git push heroku master
orgit push heroku yourbranch:master
if you are in a different branch than master