... | ... | @@ -10,3 +10,42 @@ Aplicativos para deploy de app WAR no heroku em tomcat. |
|
|
mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -Dversion=1.0-SNAPSHOT -DgroupId=br.fcsilva.modelo -DartifactId=heroku-webapp-runner -DinteractiveMode=false
|
|
|
```
|
|
|
|
|
|
Deploy no heroku:
|
|
|
|
|
|
* Install the Heroku Toolbelt
|
|
|
* Download and install the Heroku Toolbelt or learn more about the Heroku Command Line Interface.
|
|
|
* If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key.
|
|
|
|
|
|
|
|
|
```
|
|
|
#!python
|
|
|
|
|
|
$ heroku login
|
|
|
```
|
|
|
|
|
|
Create a new Git repository
|
|
|
Initialize a git repository in a new or existing directory
|
|
|
|
|
|
|
|
|
```
|
|
|
#!python
|
|
|
|
|
|
$ cd my-project/
|
|
|
$ git init
|
|
|
$ heroku git:remote -a bib-acesso
|
|
|
Deploy your application
|
|
|
```
|
|
|
|
|
|
|
|
|
Commit your code to the repository and deploy it to Heroku using Git.
|
|
|
|
|
|
|
|
|
```
|
|
|
#!python
|
|
|
|
|
|
$ git add .
|
|
|
$ git commit -am "make it better"
|
|
|
$ git push heroku master
|
|
|
|
|
|
```
|
|
|
|