Deploy to Heroku

This commit is contained in:
dzikafoczka 2024-10-23 18:29:00 +02:00
parent bce39cf4cc
commit 58b21ce85e
2 changed files with 6 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
heroku-app.txt

View File

@ -5,9 +5,12 @@ if [ ! -d ".git" ]; then
git init git init
fi fi
# App name
APP_NAME=s464863-gitea
# Create a new Heroku app # Create a new Heroku app
appName = $(heroku create --stack heroku-24 --region eu --json | jq -r '.name') WEB_URL = $(heroku create --stack heroku-24 --region eu $APP_NAME --json | jq -r '.web_url')
echo $appName > heroku-app.txt echo $WEB_URL > heroku-app.txt
# Add Heroku Postgres add-on # Add Heroku Postgres add-on
heroku addons:create heroku-postgresql:essential-0 --app s464863-gitea heroku addons:create heroku-postgresql:essential-0 --app s464863-gitea