mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 05:52:10 +00:00
b474730cf6
This commit instructs Gitpod to run `docs` in watch mode in fresh development environments so any dev could start hacking in seconds. Also included some vscode extensions for Vue, Go, and Docker. Try it here: [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/yardenshoham/gitea/tree/gitpod) Signed-off-by: Yarden Shoham <hrsi88@gmail.com> Co-authored-by: Gusted <williamzijl7@hotmail.com>
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
tasks:
|
|
- name: Setup
|
|
init: |
|
|
make deps
|
|
make build
|
|
command: |
|
|
gp sync-done setup
|
|
exit 0
|
|
- name: Run frontend
|
|
command: |
|
|
gp sync-await setup
|
|
make watch-frontend
|
|
- 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
|
|
export TAGS="sqlite sqlite_unlock_notify"
|
|
make watch-backend
|
|
- name: Run docs
|
|
before: sudo bash -c "$(grep 'https://github.com/gohugoio/hugo/releases/download' Makefile | tr -d '\')" # install hugo
|
|
command: cd docs && make clean update && hugo server -D -F --baseUrl $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0
|
|
|
|
vscode:
|
|
extensions:
|
|
- editorconfig.editorconfig
|
|
- dbaeumer.vscode-eslint
|
|
- golang.go
|
|
- stylelint.vscode-stylelint
|
|
- DavidAnson.vscode-markdownlint
|
|
- johnsoncodehk.volar
|
|
- ms-azuretools.vscode-docker
|
|
|
|
ports:
|
|
- name: Gitea
|
|
port: 3000
|
|
- name: Docs
|
|
port: 1313
|