To set up your development environment:
- pyenv recommended.
Installation varies by platform.
Once installed, the pg_config
executable must be on your PATH
.
Setup varies by platform; here are instructions for Postgres.app
cd baker-street/
pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python -m nltk.downloader all
psql --command="CREATE DATABASE baker_street_development;"
export DATABASE_URL="postgresql://localhost/baker_street_development"
./manage.py migrate
./load_canlii_documents.sh
./manage.py runserver
celery -A baker_street worker -l info
- Open http://localhost:8000/o/applications/register
- Fill out the form:
- Name:
sherlocke-chrome-dev
- Client id:
sherlocke-chrome-dev
- Client secret: (leave default)
- Client type: Confidential
- Authorization grant type: Implicit
- Redirect uris:
https://<extension-id>.chromiumapp.org/provider_cb
where<extension-id>
is the Sherlocke extension ID from chrome://extensions/
- Name:
We're using Dokku Alternative on Amazon Web Services. First contact @elliottsj to add your public key to the server, then add the remote and push to deploy:
git remote add dokku [email protected]:sherlocke.me
git push dokku
To proxy requests from http://sherlocke.me to http://baker-street.sherlocke.me,
add /etc/nginx/conf.d/www.conf
:
server {
server_name sherlocke.me;
location / {
proxy_pass http://baker-street.sherlocke.me;
}
}