The collaborative writing game we made for De Gids.
(c) 2012-2013 All rights reserved.
- Install homebrew, by getting the commandline tools: https://developer.apple.com/downloads and then do the install homebrew here: http://mxcl.github.com/homebrew/
- Open Terminal.app
- Check python is installed by typing
python
- Install pip if you don't have it
sudo easy_install pip
- Use pip to install virtualenv (don't ask me why):
sudo pip install virtualenv
- Find a fresh place to checkout the project: [email protected]:whatsthehubbub/victoryboogiewoogie.git use the Mac client: http://mac.github.com/
- In the terminal
cd
to where you just checked out the project, for instance:cd ~/Documents/projects/sake/victorycheckout
- Create a virtual environment if you don't have one yet:
virtualenv venv --distribute
- Start a virtual environment:
source venv/bin/activate
- Install all the necessary packages:
pip install -r requirements.txt
- If you have never done so, setup the database:
python manage.py syncdb
, follow the instructions you get and note down the username and password that give you /admin access to the django site - Because we use south to create the tables for the application (and to update after model changes) you need to run:
python manage.py migrate
- Start the server with
python manage.py runserver
and go to your django at http://127.0.0.1:8000/admin
To restart the server simply repeat steps 9 and 13. To be up to date again always do: 9, 10, 12, 13.
- Get accustomed to Less: http://lesscss.org
- Download CodeKit: http://incident57.com/codekit/
- Concatenate + minify Styles and Scripts (and set output path to same folder)
- Optimise images before uploading
git push heroku develop:master
- git pull
- git checkout master
- git merge --no-ff develop
- git tag -a tagname (optional)
- git push
- git push heroku master
- heroku run python manage.py migrate boogie
- git checkout develop
- git push staging master
- heroku run --app dry-earth-9852 python manage.py collectstatic --noinput
- Visit: http://dry-earth-9852.herokuapp.com/