Skip to content

Commit c0df22f

Browse files
Scripts createApp and deployApp
1 parent 070c0dc commit c0df22f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

docker/createApp.sh

100644100755
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
heroku create $1
4+
5+
heroku addons:create heroku-postgresql --app $1
6+
7+
heroku config:set SERVER_SSL_ENABLED=false --app $1
8+
heroku config:set SPRING_JPA_HIBERNATE_DDL-AUTO=update --app $1

docker/deployApp.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
cd ../backend
4+
5+
mvn spring-boot:build-image -Dspring-boot.build-image.imageName=registry.heroku.com/$1/web
6+
7+
docker push registry-host:registry.heroku.com/$1/web #alessandronuzziurjc/codeurjc-daw-2021-22-webapp3
8+
9+
heroku container:release web -a $1
10+
11+
heroku logs --tail -a $1

0 commit comments

Comments
 (0)