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