Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
migrations
pkl_objects
src
static
templates
.babelrc
.bowerrc
.gitignore
Dockerfile
Procfile
README.md
app.json
app.py
bower.json
config.py
docker-compose.yml
manage.py
models.py
package-lock.json
package.json
requirements.txt
start.sh
webpack.common.js
webpack.dev.js
webpack.prod.js

README.md

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