...
Assume that you already have heroku account
- Login to heroku using your email and pwd
$ heroku login
- Create the application. Attention! The name of the app will be included at the link of your website
$ heroku create archimap
- Create postgresql account. Hobby-dev is the only free account with 10000 rows limitation. Got to heroku website to get the info about the other limitations
$ heroku addons:add heroku-postgresql:hobby-dev
Then maybe need to wait for a while. To check the status use:
$ heroku pg:wait
- Get your POSTGRESQL URI:
$ heroku config -s | grep DATABASE_URL
- Install webserver e.g. gunicorn
$ pip install gunicorn
- Create file runp-heroku.py
- Create file Procfile
- Generate requirements.txt:
$ pip freeze > requirements.txt
- Push the code to heroku:
$ git push heroku master