Application for Winner of HackDance 2014!
git clone git@github.com:octaflop/coalio.git
cd coalio
Install Virtualenvwrapper and set up
- Install pip
- Install
virtualenvwrapper
pip install virtualenvwrapper
source /usr/local/bin/virtualenvwrapper.sh
- You will want to add this line to your
.bashrc
or.bash_profile
- Add the apps directory to the virtualenv:
add2virtualenv `pwd`apps
- Configure the virtualenv (you will need to know your virtualenv directory):
eg:
vim ~/.virtualenvs/coalio/bin/postactivate
- Update the
DJANGO_SETTINGS_MODULE
setting to include this line:export DJANGO_SETTINGS_MODULE='coalio.settings.local'
- Reboot your virtualenv:
deactivate && workon coalio
cd
to your repo and install dependencies:pip install -r requirements/base.txt
- This part’s easy:
./manage.py syncdb --migrate
enter a local admin username (email) and password if prompted.
To load static pages (such as about; etc) you will need to load the static page fixtures:
./manage.py loaddata apps/pages/fixtures/pages.json
- In the repo, run
./manage.py runserver
- Open
localhost:8000
in a browser.
- Email your ssh public key to faris ☺
- Add the remote repo:
git remote add production git@198.58.106.50:coalio.git
- Now you can push
master
branches to the production server by using:git push production master
! (Be sure to push to origin so we're all on the same page:git push origin master
). - If you have a migration, you will need to inform a sysadmin to run a migration on the server
- You can make an easy virtualenv environment starter script in your
.bash_aliases
(or.bash_profile
) file by adding these lines:
alias coalio='cd ~/workspace/projects/coalio && workon coalio'
alias startcoalio='coalio && ./manage.py runserver'