NHL 18 Database
Create ./shell
script:
#!/usr/bin/env bash
export DATABASE_URL="..."
export SECRET_KEY="..."
pipenv shell
Then:
$ ./shell
$ ./manage.py runserver
$ ./manage.py test players
Go to the Heroku Dashboard and configure variables:
- DATABASE_URL
- SECRET_KEY
$ git push heroku master
$ heroku run python manage.py migrate
$ heroku run python manage.py createcountries
$ heroku run python manage.py createteams
$ heroku run python manage.py createskaters
$ heroku run python manage.py setteamratings
$ heroku run python manage.py makeskatersform
$ heroku run python manage.py deletecountries
Development:
$ ng build --watch true
$ ./manage.py synctemplate
Production:
$ ng build --target=production
$ ./manage.py synctemplate