python3 -m venv .virtualenv
source .virtualenv/bin/activate
# check python version after activation
python --version
# make sure virtualenv is activated first
pip install -r requirements.txt
# run db migrations if necessary
./payment/manage.py makemigrations
./payment/manage.py migrate
./payment/manage.py createsuperuser
./payment/manage.py collectstatic
./payment/manage.py runserver
# After running successfully the site is accessible via http://127.0.0.1:8000/
# on success should be able to serve the app
gunicorn --pythonpath payment payment.wsgi --log-file -
# ensure heroku cli is installed and logged in first (see heroku documentation)
heroku create
git push heroku master
heroku run python ./payment/manage.py migrate
heroku run python ./payment/manage.py createsuperuser
heroku open