-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitpod.yml
31 lines (29 loc) · 879 Bytes
/
.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
image:
file: .gitpod.Dockerfile
ports:
- port: 3000
onOpen: open-browser
visibility: public
- port: 3001
onOpen: open-preview
visibility: public
- port: 5432
onOpen: ignore
tasks:
- init: >
(cp -n .env.example .env || true) &&
pipenv install &&
psql -U gitpod -c 'CREATE DATABASE example;' &&
psql -U gitpod -c 'CREATE EXTENSION unaccent;' -d example &&
pipenv run init &&
pipenv run migrate &&
pipenv run upgrade &&
python docs/assets/greeting.py back
- command: >
((sed -i /BACKEND_URL/d .env && echo "" >> .env && echo "BACKEND_URL=https://3001-${GITPOD_WORKSPACE_URL:8}" >> .env) || true) &&
npm install &&
python docs/assets/greeting.py front
openMode: split-right
vscode:
extensions:
- esbenp.prettier-vscode