1đź‘Ť
A git push heroku_remote_name local_branch_name:master
call will push that branch of code to Heroku. Heroku then does the following…
- Pulls in code changes
- Installs
pip
requirements listed inrequirements.txt
- Relaunches the “dyno” web server by invoking
python manage.py runserver
on the remote web server.
If you want to run the web application locally, you will want to create a virtualenv and invoke python manage.py runserver
locally.
If you are on linux, here are a bunch of commands that should have you working smartly. If you’re not on linux, the steps should at least be illustrative of what you will want to do.
sudo apt-get install -y python-pip
sudo pip install virtualenvwrapper
sudo pip install autoenv
cd path/to/project
mkvirtualenv venv_name_here
echo "source /home/your_username/.virtualenvs/venv_name_here/bin/activate" >> .env
cd .
python manage.py syncdb
python manage.py runserver 0.0.0.0:8000
👤pztrick
Source:stackexchange.com