KPI student attendance
1- git init
2- git add .
3- git commit -m "Add all my files"
4- git remote add origin https://github.com/USER_NAME/FOLDER_NAME
5- git pull origin master --allow-unrelated-histories
6- git push origin master
Add 'Procfile' with the following text:
web: python manage.py runserver 0.0.0.0:$PORT
- Disable the collectstatic during a deploy
heroku config:set DISABLE_COLLECTSTATIC=1 - Deploy
git push heroku master - Run migrations (django 1.10 added at least one)
heroku run python manage.py migrate - Run collectstatic using bower
heroku run 'bower install --config.interactive=false;grunt prep;python manage.py collectstatic --noinput' - eEnable collecstatic for future deploys
heroku config:unset DISABLE_COLLECTSTATIC - Try it on your own (optional)
heroku run python manage.py collectstatic
$ git add .
$ git commit -m 'init'
$ git push heroku master
$ heroku ps:scale web=1
$ heroku run python manage.py migrate