Skip to content

compsy/personalized-coaching-app

Repository files navigation

Instal reqs

pip install -r requirements.txt

Create db

psql --host docker.dev --port 5432 --username frbl
frbl=# create database personalized_coaching;
frbl=# \q

Set correct env vars

  export APP_SETTINGS="config.DevelopmentConfig"
  export DATABASE_URL="postgresql://docker.dev/personalized_coaching"

Create migrations

  python manage.py db init

Run the migrations

  python manage.py db migrate

On heroku:

  1. Set config vars for app_settings
heroku config:add APP_SETTINGS=config.ProductionConfig --app personalized-coaching
  1. heroku addons:create heroku-postgresql:hobby-dev --app personalized-coaching

  2. Push to heroku

  3. Run migrations:

heroku run python manage.py db upgrade --app personalized-coaching
  1. Run seeds:
heroku run python manage.py seed --app personalized-coaching

all set!

If you change the JS, be sure to run npm run build to build the new assets

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •