Deploy to Heroku

This commit is contained in:
asmigiel 2025-01-07 21:52:56 +01:00
parent 7d8b7b6005
commit 9c56cc6f29
3 changed files with 7 additions and 4 deletions

View File

@ -2,8 +2,10 @@ FROM gitea/gitea:1.14.5
WORKDIR /app
COPY app_url.txt ./
COPY run.sh ./
USER root
RUN chmod +x ./run.sh
ENTRYPOINT ["./run.sh"]

View File

@ -1 +1 @@
https://s464951-gitea-530091612f47.herokuapp.com/
https://s464951-gitea-fa34820a73f7.herokuapp.com/

View File

@ -13,8 +13,9 @@ heroku addons:create heroku-postgresql:essential-0 --app $APP_NAME
echo "Waiting for Heroku Postgres to be fully provisioned..."
heroku pg:wait --app $APP_NAME
echo DATABASE_URL
echo $DATABASE_URL
echo DB_URL
heroku config:get DATABASE_URL -a $APP_NAME
# Push to Heroku
heroku git:remote --app $APP_NAME
@ -23,4 +24,4 @@ git commit -m "Deploy to Heroku"
git push heroku main
# Open the app in the browser
# heroku open --app $APP_NAME
heroku open --app $APP_NAME