Skip to content

Instantly share code, notes, and snippets.

@wookiehangover
Last active December 31, 2015 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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.

@alexmcpherson
Copy link

For future reference, some issues so far:

  1. grunt require:main is throwing multiple instances of module 'debug' not found when running as part of make js css

  2. ./snowbird/manager.py celeryd -l INFO is throwing "ImportError: No module named django.core.management" Solid leads on Stack Overflow so far, but maybe something that can change in their README

@alexmcpherson
Copy link

Also second to last command is runserver not runserever. Might save the next dev some onboarding pain (unless they're smarter than me and think about what it is they're typing...)

@alexmcpherson
Copy link

Ok, the celeryd command returning the ImportError is cause by not having activated the virtualenv with source bin/activate first. That's a per-terminal session command. Check

@alexmcpherson
Copy link

When you brew install memcached make sure you actually setup the daemon for on startup and/or boot it manually. brew info memcached tells you the symlinks to make

@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