Heroku Instructions
##Heroku Overview
For this project, we will be using Heroku to deploy actual project for live use. More information about Heroku and documentation are located here:
http://www.heroku.com/ https://devcenter.heroku.com/
##How to Install/Use
Luckily, because of the nature of how Heroku deploys projects using the Python language/Django framework, modifications can be made similar to how changes are made to the Git repository (through basic clone, modification, and push). Upon the push to the Heroku repo, Heroku will automatically configure and deploy the project using the given site name.
However, if other Heroku commands or operations need to be entered, install the Heroku toolkit by going to the page here:
Follow the instructions for complete installation (has for all operating systems).
##Sample Commands
heroku open
- opens app
heroku logs
- heroku log
heroku git:clone -a theeventhub
- clones theeventhub project
git push heroku
- pushes code to heroku, before this do the following:
git status
git add -u/filename
git commit -m ""
heroku run python manage.py syncdb
- creates tables from models
heroku pg:psql
- opens postgres console on remote host
##Heroku Deployment Guide
In general, always change names to match given Heroku app name. Also, modify files to match settings set for Heroku app.
Sample:
- In settings.py, change database url and import dj_database_url
- In manage.py, change to theeventhub
- Rename folders to theeventhub, change to theeventhub in views.py