File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,23 +13,18 @@ Make sure you have Java and Maven installed. Also, install the [Heroku CLI](htt
1313``` sh
1414$ git clone https://github.com/heroku/java-getting-started.git
1515$ cd java-getting-started
16- $ mvn install
17- $ heroku local:start
16+ $ mvn clean install
17+ $ docker-compose up -d
1818```
1919
20- Your app should now be running on [ localhost:5000] ( http://localhost:5000/ ) .
21-
22- If you're going to use a database, ensure you have a local ` .env ` file that reads something like this:
23-
24- ```
25- JDBC_DATABASE_URL=jdbc:postgresql://localhost:5432/java_database_name
26- ```
20+ Your app should now be running on [ localhost:8080] ( http://localhost:8080/ ) .
2721
2822## Deploying to Heroku
2923
3024``` sh
3125$ heroku create
32- $ git push heroku master
26+ $ heroku container:push web
27+ $ heroku container:release web
3328$ heroku open
3429```
3530
@@ -38,3 +33,5 @@ $ heroku open
3833For more information about using Java on Heroku, see these Dev Center articles:
3934
4035- [ Java on Heroku] ( https://devcenter.heroku.com/categories/java )
36+
37+ - [ Container Registry & Runtime (Docker Deploys)] ( https://devcenter.heroku.com/articles/container-registry-and-runtime )
You can’t perform that action at this time.
0 commit comments