funquail/.gitpod.yml
Shin'ya Minazuki 668b994f32 ギターを弾く -Playing guitar-
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
2026-01-25 01:20:05 -03:00

121 lines
3 KiB
YAML

image:
file: .gitpod/Dockerfile
tasks:
- name: Backend
env:
ENV_FILE: /workspace/funquail/.gitpod/.env
COMPOSE_FILE: /workspace/funquail/.gitpod/docker-compose.yml
before: |
cp .gitpod/gitpod.env .gitpod/.env
cd api
init: |
mkdir -p ../data/media/attachments ../data/music ../data/staticfiles
docker-compose up -d
poetry env use python
poetry install
gp ports await 5432
poetry run funquail-manage migrate
poetry run funquail-manage fw users create --superuser --username gitpod --password funquail --email test@example.org
poetry run funquail-manage gitpod init
command: |
echo "MEDIA_URL=`gp url 8000`/media/" >> ../.gitpod/.env
echo "STATIC_URL=`gp url 8000`/staticfiles/" >> ../.gitpod/.env
echo "FUNKWHALE_HOSTNAME=`gp url 8000 | sed 's#https://##'`" >> ../.gitpod/.env
echo "FUNKWHALE_PROTOCOL=https" >> ../.gitpod/.env
docker-compose up -d
gp ports await 5432
poetry run funquail-manage collectstatic --no-input
poetry run funquail-manage gitpod dev
- name: Celery Worker
env:
ENV_FILE: /workspace/funquail/.gitpod/.env
before: cd api
command: |
gp ports await 5000
poetry run celery -A funquail_api.taskapp worker -l debug -B --concurrency=0
- name: Frontend
env:
VUE_EDITOR: code
before: cd front
init: |
yarn install
command: yarn dev --host 0.0.0.0 --base ./
- name: Documentation
before: cd docs
init: make install
command: make dev
- name: Welcome to FunQuail development!
env:
COMPOSE_FILE: /workspace/funquail/.gitpod/docker-compose.yml
ENV_FILE: /workspace/funquail/.gitpod/.env
VUE_EDITOR: code
DJANGO_SETTINGS_MODULE: config.settings.local
init: |
pre-commit install
pre-commit run --all
command: |
echo ""
echo -e " You can now start developing FunQuail with gitpod!"
echo -e " "
echo -e " To sign in to the superuser account,"
echo -e " please use these credentials:"
echo -e " "
echo -e " gitpod\u1b[0m:\u1b[34mfunquail"
echo ""
ports:
- name: FunQuail
port: 8000
visibility: public
onOpen: notify
- name: FunQuail API
port: 5000
visibility: private
onOpen: ignore
- name: PostgreSQL
port: 5432
visibility: private
onOpen: ignore
- name: Debugpy
port: 5678
visibility: private
onOpen: ignore
- name: Redis
port: 6379
visibility: private
onOpen: ignore
- name: Frontend
port: 8080
visibility: private
onOpen: ignore
- name: Documentation
port: 8001
visibility: public
onOpen: notify
vscode:
extensions:
- Vue.volar
- ms-python.python
- ms-toolsai.jupyter
- ms-toolsai.jupyter-keymap
- ms-toolsai.jupyter-renderers
- hbenl.vscode-test-explorer
- hbenl.test-adapter-converter
- littlefoxteam.vscode-python-test-adapter
- ZixuanChen.vitest-explorer