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>
.
pip install virtualenv
virtualenv .
source bin/activate
pip install -r requirements/development.txt
pip install pylibmc
fab create_overrides
cd snowbird
make settings.py
cd ..
fab fetch_dump
fab load_dump
make js css
./snowbird/manage.py migrate
./snowbird/manage.py migrate --delete-ghost-migrations
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.
Ok, the
celeryd
command returning the ImportError is cause by not having activated the virtualenv withsource bin/activate
first. That's a per-terminal session command. Check