jnovinger / ultimatetictactoe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tictactoe

Below you will find basic setup and deployment instructions for the tictactoe project. To begin you should have the following applications installed on your local development system:

Getting Started

To setup your local environment you should create a virtualenv and install the necessary requirements:

mkvirtualenv tictactoe
$VIRTUAL_ENV/bin/pip install -r $PWD/requirements/dev.txt

Then create a local settings file and set your DJANGO_SETTINGS_MODULE to use it:

cp tictactoe/settings/local.example.py tictactoe/settings/local.py
echo "export DJANGO_SETTINGS_MODULE=tictactoe.settings.local" >> $VIRTUAL_ENV/bin/postactivate
echo "unset DJANGO_SETTINGS_MODULE" >> $VIRTUAL_ENV/bin/postdeactivate

Exit the virtualenv and reactivate it to activate the settings just changed:

deactivate
workon tictactoe

Create the Postgres database and run the initial syncdb/migrate:

createdb -E UTF-8 tictactoe
python manage.py syncdb
python manage.py migrate

You should now be able to run the development server:

python manage.py runserver

Deployment

You can deploy changes to a particular environment with the deploy command:

fab staging deploy

New requirements or South migrations are detected by parsing the VCS changes and will be installed/run automatically.

About


Languages

Language:JavaScript 31.4%Language:SaltStack 20.0%Language:CSS 16.4%Language:Python 15.8%Language:HTML 15.5%Language:Elixir 0.4%Language:Shell 0.4%