What's your favourite question?
Follow @favouriteq for daily questions
Another Gunt London production
Create a mysql database called favouriteq
Create tables for apps that aren't using south
./manage.py syncdb
Create tables for apps that are using south. Data will be loaded from fixtures
./manage.py migrate
During development developers should continue to run the ./manage.py migrate command to keep their DB up to date.
Create virtual environment
virtualenv --no-site-packages env
(if you don't have virtualenv, install it: sudo pip install virtualenv
)
(if you don't have pip, install it: sudo easy_install pip
)
Activate virtual environment
source env/bin/activate
From the root
pip install -r requirements/requirements.txt
From the root
cd favouriteQ
python manage.py runserver
Open http://127.0.0.1:8000/ in a browser
Note you will need to have installed requirements so you have fabric on your machine.
From the root
cd favouriteQ
fab production deploy
If you want less verbose output
fab production deploy --hide=stdout