Skip to content

Instantly share code, notes, and snippets.

@wookiehangover
Last active December 31, 2015 12:39
Show Gist options
  • Save wookiehangover/7987967 to your computer and use it in GitHub Desktop.
Save wookiehangover/7987967 to your computer and use it in GitHub Desktop.

Sprintly Env Setup

git clone git@github.com:sprintly/sprint.ly.git

brew install python
brew install memcached
brew install libmemcached
brew install mysql
brew install pv

For memcached and mysql, make sure that you setup the package's daemon and/or start it manually. More instructions can be found with brew info <package>.

Python Junk

pip install virtualenv
virtualenv .
source bin/activate
pip install -r requirements/development.txt
pip install pylibmc

Database Setup

fab create_overrides
cd snowbird
make settings.py
cd ..
fab fetch_dump
fab load_dump

JavaScript Build

make js css

Migrations

./snowbird/manage.py migrate
./snowbird/manage.py migrate --delete-ghost-migrations

Other Notes

This assumes a working Node/npm and homebrew installs

Start the server with:

./snowbird/manage.py runseever
./snowbird/manage.py celeryd -l INFO

Whenever you lose internet, you'll need to kill and restart Celery, otherwiser pusher events may stop working.

@wookiehangover
Copy link
Author

actually setup the daemon for on startup and/or boot it manually

Ya I also had forgotten to do that, esp when setting up a clean machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment