20 lines
448 B
Bash
Executable File
20 lines
448 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# App name
|
|
APP_NAME=s464951-gitea
|
|
|
|
WEB_URL=$(heroku create --stack container --region eu $APP_NAME --json | jq -r '.web_url')
|
|
echo $WEB_URL
|
|
|
|
# Add Heroku Postgres add-on
|
|
heroku addons:create heroku-postgresql:essential-0 --app $APP_NAME
|
|
|
|
echo echo $DATABASE_URL
|
|
# Push to Heroku
|
|
heroku git:remote --app $APP_NAME
|
|
git add .
|
|
git commit -m "Deploy to Heroku"
|
|
git push heroku main
|
|
|
|
# Open the app in the browser
|
|
heroku open --app $APP_NAME |