File tree 2 files changed +47
-0
lines changed 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ docker-compose up --build
25
25
docker-compose down
26
26
```
27
27
28
+ ## Deploy Application on Heroku
29
+
30
+ - [ Heroku instructions] ( DEPLOY_HEROKU.md )
31
+
28
32
## License
29
33
This repo is available released under the [ MIT License] ( http://opensource.org/licenses/mit-license.php/ ) .
30
34
# java-goof
You can’t perform that action at this time.
0 commit comments