-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitpod.yml
58 lines (53 loc) · 1.6 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
gitConfig:
pull.rebase: "true"
ports:
- port: 8080 # Vue CLI
onOpen: ignore
- port: 8000 # Django runserver
onOpen: ignore
visibility: public
- port: 3000 # Vite
onOpen: ignore
- port: 5432 # PostgreSQL
onOpen: ignore
- port: 6379 # Redis
onOpen: ignore
tasks:
- name: Node.js
init: yarn --cwd $GITPOD_REPO_ROOT/frontend/ install
command: |
echo 'export PROXY_URL=$(gp url 8000)' >> ~/.bashrc
gp sync-done api-proxy-url
source ~/.bashrc
- name: Python
openMode: split-right
command: |
gp sync-await api-proxy-url
source ~/.bashrc
pip freeze | xargs pip uninstall -y
pip install -r $GITPOD_REPO_ROOT/backend/deploy/requirements.txt
echo `cat /dev/urandom | head -1 | md5sum | head -c 32` > $GITPOD_REPO_ROOT/backend/data/config/secret.key
python3 $GITPOD_REPO_ROOT/backend/manage.py migrate
python3 $GITPOD_REPO_ROOT/backend/manage.py inituser --username=root --password=rootroot --action=create_super_admin
- name: DB Container
openMode: tab-before
command: |
gp sync-await api-proxy-url
source ~/.bashrc
docker-compose -f $GITPOD_REPO_ROOT/.gitpod.docker-compose.yml up -d
vscode:
extensions:
- bradlc.vscode-tailwindcss
- dbaeumer.vscode-eslint
- donjayamanne.githistory
- eamodio.gitlens
- editorconfig.editorconfig
- gruntfuggly.todo-tree
- humao.rest-client
- johnsoncodehk.volar
- ms-azuretools.vscode-docker
- ms-python.python
- ms-toolsai.jupyter
- naumovs.color-highlight
- oderwat.indent-rainbow
- pkief.material-icon-theme