Heroku: Difference between revisions

From HaFrWiki42
Jump to navigation Jump to search
Line 21: Line 21:


== DTAP Loop ==
== DTAP Loop ==
The steps to perform a development cycle are:
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">

  1. Add the changes to the repository

$ git add .

  1. Commit the changes

$ git commit -m "Reason..."

  1. Deploy the changes to the repo

$ git push heroku master

  1. Check if everythings works

$ heroku open </syntaxhighlight>

See also

top

  • Heroku Devcenter, Getting started Tutorial. Shows how to create, deploy on Local-Development & Remote-Production a java app with maven.

Reference

top

  1. Herohu home, About Heroku