-
Notifications
You must be signed in to change notification settings - Fork 6
Getting Started
Lauren Johnston edited this page May 9, 2020
·
1 revision
pip install virtualenv --user
virtualenv venv
. venv/bin/activate
# when done with work:
deactivate
pip install -r requirements.txt
You can find the mapbox API key referenced below by logging into the Mapbox.com account.
vim ~/.bash_profile
# Add the following lines:
export DISTR_DB_NAME="..."
export DISTR_DB_USER="..."
export DISTR_DB_PASS="..."
export DISTR_MAPBOX_KEY="COPY_THIS_FROM_MAPBOX_ACCOUNT"
export DJANGO_SETTINGS_MODULE=representable.settings.dev
Save and launch a new terminal session.
Go to docs/postgres, docs/geodjango, and docs/mapbox_tippecanoe for details.
cd representable
python manage.py migrate
python manage.py runserver
git push heroku master
heroku config:set VARIABLE=value
heroku config:unset VARIABLE