-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
paraguai
committed
Nov 19, 2017
1 parent
82c5dce
commit e8ea9e2
Showing
1 changed file
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |