Skip to content

Commit e619a99

Browse files
authored
Update README.md
Add additional information about docker usage
1 parent 87571ec commit e619a99

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff 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
3833
For 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)

0 commit comments

Comments
 (0)