code.gitea.io/gitea@v1.21.7/.gitpod.yml (about) 1 tasks: 2 - name: Setup 3 init: | 4 cp -r contrib/ide/vscode .vscode 5 make deps 6 make build 7 command: | 8 gp sync-done setup 9 exit 0 10 - name: Run backend 11 command: | 12 gp sync-await setup 13 if [ ! -f custom/conf/app.ini ] 14 then 15 mkdir -p custom/conf/ 16 echo -e "[server]\nROOT_URL=$(gp url 3000)/" > custom/conf/app.ini 17 echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = $GITPOD_REPO_ROOT/data/gitea.db" >> custom/conf/app.ini 18 fi 19 export TAGS="sqlite sqlite_unlock_notify" 20 make watch-backend 21 - name: Run frontend 22 command: | 23 gp sync-await setup 24 make watch-frontend 25 openMode: split-right 26 27 vscode: 28 extensions: 29 - editorconfig.editorconfig 30 - dbaeumer.vscode-eslint 31 - golang.go 32 - stylelint.vscode-stylelint 33 - DavidAnson.vscode-markdownlint 34 - Vue.volar 35 - ms-azuretools.vscode-docker 36 - zixuanchen.vitest-explorer 37 - qwtel.sqlite-viewer 38 - GitHub.vscode-pull-request-github 39 40 ports: 41 - name: Gitea 42 port: 3000