Skip to content

Commit 5aceedc

Browse files
anbraten6543techknowlogick
authored
add gitpod config (#20995)
Add a config for <https://www.gitpod.io/>. This allows users to easily run an online IDE pre-configured to develop and test Gitea by opening <https://gitpod.io/#https://github.com/go-gitea/gitea>. [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/go-gitea/gitea) Co-authored-by: 6543 <[email protected]> Co-authored-by: techknowlogick <[email protected]>
1 parent 9b7675d commit 5aceedc

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.gitpod.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
image: gitpod/workspace-full:latest
2+
3+
tasks:
4+
- name: Setup
5+
init: |
6+
make deps
7+
make build
8+
command: |
9+
gp sync-done setup
10+
exit 0
11+
- name: Run frontend
12+
command: |
13+
gp sync-await setup
14+
make watch-frontend
15+
- name: Run backend
16+
command: |
17+
gp sync-await setup
18+
mkdir -p custom/conf/
19+
echo -e "[server]\nROOT_URL=https://3000-$GITPOD_WORKSPACE_ID.${GITPOD_WORKSPACE_CLUSTER_HOST}/" > custom/conf/app.ini
20+
echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = /workspace/gitea/data/gitea.db" >> custom/conf/app.ini
21+
export TAGS="sqlite sqlite_unlock_notify"
22+
make watch-backend
23+
24+
vscode:
25+
extensions:
26+
- editorconfig.editorconfig
27+
- dbaeumer.vscode-eslint
28+
- golang.go
29+
- stylelint.vscode-stylelint
30+
- DavidAnson.vscode-markdownlint
31+
32+
ports:
33+
- name: Gitea
34+
port: 3000

0 commit comments

Comments
 (0)