Heroku: Difference between revisions
Line 21: | Line 21: | ||
== DTAP Loop == | == DTAP Loop == | ||
The steps to | The steps to execute the DTAP development cycle are: | ||
* [[#Test lcal | Test local]] | * [[#Test lcal | Test local]] | ||
* [[#Deploy | Deploy]] | * [[#Deploy | Deploy]] | ||
Line 46: | Line 46: | ||
$ heroku open | $ heroku open | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== See also == | == See also == |
Revision as of 11:53, 21 June 2015
Heroku [1] (pronounced her-OH-koo) is a cloud application platform – a new way of building and deploying web apps. The service lets app developers spend their time on their application code, not managing servers, deployment, ongoing operations, or scaling.
Heroku was founded in 2007 by Orion Henry, James Lindenbaum, and Adam Wiggins.
Foreman
Foreman is a manager for Procfile-based applications. Its aim is to abstract away the details of the Procfile format, and allow you to either run your application directly or export it to some other process management format.
Procfile application
A Procfile application is an application that has a Procfile with instructions to start various processes it needs to run correctly.
Here’s how a Procfile might look like:
rails: bundle exec rails s postgres: postgres -D /Users/mauricio/databases/postgresql elasticsearch: elasticsearch -f
Environment Files
Foreman automatically loads the .env file that is at the same directory as your Procfile.
DTAP Loop
The steps to execute the DTAP development cycle are:
Test local
<syntaxhighlight lang="bash" line start="1"> $ mvn clean install $ foreman start web </syntaxhighlight> Now visit the application at http://localhost:5000.
Deploy remote
<syntaxhighlight lang="bash" line start="1">
- Add the changes to the repository
$ git add .
- Commit the changes
$ git commit -m "Reason..."
- Deploy the changes to the repo
$ git push heroku master
- Check if everythings works
$ heroku open </syntaxhighlight>
See also
- Heroku Devcenter, Getting started Tutorial. Shows how to create, deploy on Local-Development & Remote-Production a java app with maven.
Reference
- ↑ Herohu home, About Heroku