How To Use Heroku

Heroku is a cloud based development platform, part of Salesforce, that allows you deploy web based applications in the cloud. I’ve been playing with it to see what it can do.

To create a new Heroku app named app-name in a workspace, run:

heroku create app-name

Write and add your code. For a python app, make sure you include the requirements.txt to create the virtualenv. Add the Heroku Procfile.

To push your code to Heroku, commit the files using git, then run:

git push heroku master

To access your application in your browser, running it on Heroku, run:

heroku open

If your application fails to start, examine the log by running:

heroku logs

Advertisements

About jimbelton

I'm a software developer, and a writer of both fiction and non-fiction, and I blog about movies, books, and philosophy. My interest in religious philosophy and the search for the truth inspires much of my writing.
This entry was posted in programming and tagged , , , , . Bookmark the permalink.

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s