- npm (node.js)
- python
- pip
- Postgres
- virtualenv
- virtualenvwrapper
- install global
- Add following lines to .bashrc/.zshrc
- export WORKON_HOME=$HOME/.virtualenvs
- export MSYS_HOME=/c/msys/1.0
- source /usr/local/bin/virtualenvwrapper.sh
- OSX: console-tools (xcode-select --install)
* mkvirtualenv scope
* pip install -r requirements.txt
* npm install
* python manage.py bower install --settings=conf.settings.local
in case there is a problem with the binary:
"sudo ln -s /usr/bin/nodejs /usr/bin/node"
* CAUTION: Following commands download around 1.4 GB
* python -m spacy.en.download all
* python -m spacy.de.download all
* CAUTION: In case you get an error "pg_config executable not found" when installing psycopg2 from requirements, you may have to (a) reinstall postgresql using "brew install postgresql" on Mac or "sudo apt-get install libpq-dev python-dev" on Linux/ubuntu
* Add to .virtualenvs/scope/bin/postactivate
* export DATABASE_NAME='taskbuster_db'
* export DATABASE_USER='myusername'
* export DATABASE_PASSWORD='mypassword'
* export SECRET_KEY='key's
* export BROKER_URL=""
* export EMAIL_HOST_PASSWORD=""
* export OUT_EMAIL="example@scope.ai"
* export DJANGO_SETTINGS_MODULE=conf.settings.local /deployment
* Add to .virtualenvs/scope/bin/predeactivate
* unset DATABASE_NAME
* unset DATABASE_USER
* unset DATABASE_PASSWORD
* unset SECRET_KEY
* unset BROKER_URL
* unset EMAIL_HOST_PASSWORD
* unset OUT_EMAIL
* unset DJANGO_SETTINGS_MODULE
* Bower requires collectstatic for production, so new packages with bower also need to be collected
* If you get rif of an app, collectstatic --clear will get rid of stale static files
* On the local version, Bower has a bower_components folder at the base_dir level that somehow is not produced in deployment (and is included in .gitignore)
* python manage.py migrate --fake
for first time: don't use the fake flag
* python manage.py runserver