From 9c56cc6f2900d16f1f34cf38d289747a39d203da Mon Sep 17 00:00:00 2001 From: asmigiel Date: Tue, 7 Jan 2025 21:52:56 +0100 Subject: [PATCH] Deploy to Heroku --- Dockerfile | 2 ++ app_url.txt | 2 +- deploy.sh | 7 ++++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 334c347..ab3ba52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/app_url.txt b/app_url.txt index ac4ee56..b1cab7c 100644 --- a/app_url.txt +++ b/app_url.txt @@ -1 +1 @@ -https://s464951-gitea-530091612f47.herokuapp.com/ +https://s464951-gitea-fa34820a73f7.herokuapp.com/ diff --git a/deploy.sh b/deploy.sh index 475d7b9..871bf01 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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 \ No newline at end of file +heroku open --app $APP_NAME \ No newline at end of file