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

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.

1 Response to How To Use Heroku

  1. Pingback: How To Use Heroku | SutoCom Solutions

Leave a Comment

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

You are commenting using your 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 )

Connecting to %s