git clone <repo>cd <app dir>pip install --install-option="--user" virtualenvwrapperexport WORKON_HOME=$HOME/.virtualenvssource /usr/local/bin/virtualenvwrapper.shmkvirtualenv SINvenvpip install -r requirements.txtbower 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/postgrescreateuser -d webappscreatedb webapps2psql -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 migratepython manage.py syncdb
SSH into sin.reed.edu as the sin user, and run the /home/sin/deploy.sh script.