git clone <repo>
cd <app dir>
pip install --install-option="--user" virtualenvwrapper
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
mkvirtualenv SINvenv
pip install -r requirements.txt
bower install jquery bootstrap
- Create a new settings file:
cp webapps2/example_settings.py webapps2/settings.py
- Generate new secret key and place into settings file
pg_ctl start -D /usr/local/var/postgres
createuser -d webapps
createdb webapps2
psql -d webapps2 webapps
- Ensure PostgreSQL is running
cd <project dir>
and activate the virtualenvpython manage.py collectstatic
; this collects static files from the static folders and the webapps_assets and bower_components directories (as per webapps/settings.py)python manage.py runserver
; runs the server using localhost at port 8000
python manage.py makemigrations <app name>
python manage.py migrate
python manage.py syncdb
SSH into sin.reed.edu
as the sin
user, and run the /home/sin/deploy.sh
script.