Skip to content

Commit

Permalink
Add arquivo README
Browse files Browse the repository at this point in the history
  • Loading branch information
paraguai committed Nov 19, 2017
1 parent 82c5dce commit e8ea9e2
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions README-Heroku.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
A aula pode ser acessada em:

[http://blog.algaworks.com/hospedagem-jsf-heroku](http://blog.algaworks.com/hospedagem-jsf-heroku)

Vou deixar aqui as ações que foram executadas na aula e os comandos também.

### Instalação do Ruby

Na aula foi utilizado o comando:

```shell
$ sudo apt-get install ruby-full
```

Consulte o link:

[https://www.ruby-lang.org/pt/documentation/installation/](https://www.ruby-lang.org/pt/documentation/installation/)

... para diferentes sistemas operacionais.

### Instalação do Heroku CLI

Na aula foi utilizado o comando:

```shell
$ wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
```
Consulte o link:

[https://devcenter.heroku.com/articles/heroku-cli](https://devcenter.heroku.com/articles/heroku-cli)

... para diferentes sistemas operacionais.

## Comandos utilizados na aula

```shell
$ git clone https://github.com/algaworks/videoaula-jsf-hospedagem.git

$ cd /videoaula-jsf-hospedagem

$ mvn clean package

$ heroku local

$ heroku login

$ heroku create videoaula-jsf-hospedagem

$ heroku addons:create heroku-postgresql:hobby-dev

$ heroku config

$ heroku config:set JDBC_URL="...";

$ heroku config:set JDBC_USER="...";

$ heroku config:set JDBC_PASSWORD="..."

$ git push heroku master

$ heroku open

$ heroku logs --tail

$ heroku ps

$ heroku ps:scale web=1

$ heroku dyno:type web=hobby # Somente se já tiver cartão configurado.

$ heroku destroy --app videoaula-jsf-hospedagem
```

0 comments on commit e8ea9e2

Please sign in to comment.