Estimated time: 2 hours max.
Task 1: Clone the HelloHeroku Django Project from GitHub into your local workspace. You will have to create a new VirtualEnv to run this project locally.
$ virtualenv venv --distribute $ pip install -r requirements.txt
You will also have to define the environment variable $DATABASE_URL. This variable should point to your Postgres database.
Hint: “export DATABASE_URL=postgres://<user>:<password>@localhost/<dbname>”
Where <user> and <password> are the Postgres user name and password. The <dbname> is the database name to hold the Poll data for the example. You may have to run the SQL commands:
CREATE USER <user> WITH CREATEDB PASSWORD '<password>'; CREATE DATABASE <dbname> OWNER <user>;
from the psql command line before syncing and running the database.
Task 2: Run the server locally and view the results at localhost:8000/. You will need to run “python manage.py collectstatic” to copy the static files to the correct location before running the server. You will see a ‘non-responsive’ Twitter Bootstrap Example page that uses LESS to compile the styles.
Task 3: Deploy the project to your Heroku account. You can follow the same instructions you did in the Heroku tutorial to Deploy to Heroku. View the results running on Heroku.
By the date and time specified on the Calendar page, create a blog posting summarizing the lessons learned from this experience, including any obstacles you encountered and how you addressed them. If you were able to successfully deploy the application to Heroku, include a link to the running application in your blog posting. If you were not able to finish the deployment, indicate what became the show stopper.
Send email to Philip Johnson with a link to your blog posting. The subject line must be [ICS 691: A18]. If the subject line is different, then I might not see the email and you might not get credit for this assignment. In addition, post the link to your blog posting to the class mailing list so that others can benefit from you experience.