Skip to content

Commit 83946b9

Browse files
committed
docs: deploy to heroku
1 parent 71f9036 commit 83946b9

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

DEPLOY_HEROKU.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## Deploy Java Goof on Heroku
2+
3+
There are multiple ways to deply an application to heroku.
4+
Currently the deploying the WAR file works (best)
5+
6+
### Deploying WAR file with the Heroku CLI
7+
8+
1. Create Heroku account / Login to Heroku and create a new app
9+
2. Install Heroku CLI on local machine
10+
```
11+
$ brew tap heroku/brew && brew install heroku
12+
```
13+
or
14+
```
15+
$ npm install -g heroku
16+
```
17+
18+
3. login with Heroku CLI
19+
```
20+
$ heroku login
21+
```
22+
23+
4. install Heroku Java plugin
24+
25+
```
26+
$ heroku plugins:install java
27+
```
28+
29+
5. build Java goof from root directory
30+
```
31+
$ mvn install
32+
```
33+
34+
6. upload WAR file
35+
```
36+
$ heroku war:deploy todolist-web-struts/target/todolist.war --app <your_app_name>
37+
```
38+
39+
The war file should be uploading and the app will start up. This may take some time.
40+
41+
42+
43+

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ docker-compose up --build
2525
docker-compose down
2626
```
2727

28+
## Deploy Application on Heroku
29+
30+
- [Heroku instructions](DEPLOY_HEROKU.md)
31+
2832
## License
2933
This repo is available released under the [MIT License](http://opensource.org/licenses/mit-license.php/).
3034
# java-goof

0 commit comments

Comments
 (0)