From 13bc9ab0d8f2f22a7089a1bcf4c6e9c8a0b45084 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Tue, 28 Feb 2023 12:55:12 +0000 Subject: [PATCH 1/2] Write Gitpod `app.ini` only once --- .gitpod.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index a184e6376ebb..cdf5a2a81225 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -10,9 +10,12 @@ tasks: - name: Run backend command: | gp sync-await setup - mkdir -p custom/conf/ - echo -e "[server]\nROOT_URL=$(gp url 3000)/" > custom/conf/app.ini - echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = $GITPOD_REPO_ROOT/data/gitea.db" >> custom/conf/app.ini + if [[ ! -f custom/conf/app.ini ]] + then + mkdir -p custom/conf/ + echo -e "[server]\nROOT_URL=$(gp url 3000)/" > custom/conf/app.ini + echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = $GITPOD_REPO_ROOT/data/gitea.db" >> custom/conf/app.ini + fi export TAGS="sqlite sqlite_unlock_notify" make watch-backend - name: Run frontend From 0c2878cc9b73becd92359ef03cd12313f6763546 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Tue, 28 Feb 2023 15:49:22 +0200 Subject: [PATCH 2/2] Update .gitpod.yml Co-authored-by: delvh --- .gitpod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index cdf5a2a81225..506c62045835 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -10,7 +10,7 @@ tasks: - name: Run backend command: | gp sync-await setup - if [[ ! -f custom/conf/app.ini ]] + if [ ! -f custom/conf/app.ini ] then mkdir -p custom/conf/ echo -e "[server]\nROOT_URL=$(gp url 3000)/" > custom/conf/app.ini