From 58b21ce85e7e2121383d983f67ccbe0367bf03b8 Mon Sep 17 00:00:00 2001 From: dzikafoczka Date: Wed, 23 Oct 2024 18:29:00 +0200 Subject: [PATCH] Deploy to Heroku --- .gitignore | 1 + deploy.sh | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e31dcb4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +heroku-app.txt \ No newline at end of file diff --git a/deploy.sh b/deploy.sh index abf4add..afc2b5a 100644 --- a/deploy.sh +++ b/deploy.sh @@ -5,9 +5,12 @@ if [ ! -d ".git" ]; then git init fi +# App name +APP_NAME=s464863-gitea + # Create a new Heroku app -appName = $(heroku create --stack heroku-24 --region eu --json | jq -r '.name') -echo $appName > heroku-app.txt +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