From ef83de97522bad1935e6b75ecb991595aa126a47 Mon Sep 17 00:00:00 2001 From: dzikafoczka Date: Wed, 23 Oct 2024 18:31:36 +0200 Subject: [PATCH] Deploy to Heroku --- deploy.sh | 5 +++-- heroku-app.txt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index afc2b5a..8f42e6e 100644 --- a/deploy.sh +++ b/deploy.sh @@ -9,16 +9,17 @@ fi APP_NAME=s464863-gitea # Create a new Heroku app -WEB_URL = $(heroku create --stack heroku-24 --region eu $APP_NAME --json | jq -r '.web_url') +WEB_URL=$(heroku create --stack heroku-24 --region eu $APP_NAME --json | jq -r '.web_url') echo $WEB_URL > heroku-app.txt # Add Heroku Postgres add-on heroku addons:create heroku-postgresql:essential-0 --app s464863-gitea # Push to Heroku +heroku git:remote --app s464863-gitea git add . git commit -m "Deploy to Heroku" -git push heroku main +git push heroku master # Open the app in the browser heroku open --app s464863-gitea \ No newline at end of file diff --git a/heroku-app.txt b/heroku-app.txt index 8b13789..a564d11 100644 --- a/heroku-app.txt +++ b/heroku-app.txt @@ -1 +1 @@ - +https://s464863-gitea-c39db320a0e5.herokuapp.com/