Skip to content

Commit 5d013c2

Browse files
committed
Add scripts
1 parent c2decb1 commit 5d013c2

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

docker/create_heroku_app.sh

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/create_image.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
docker build -f Dockerfile -t $1 ../backend/webandtech
4+
docker push $1

docker/deploy_heroku_app.sh

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

0 commit comments

Comments
 (0)