-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
62 lines (58 loc) · 1.55 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
59
60
61
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
# and commit this file to your remote git repository to share the goodness with others.
github:
prebuilds:
# Only prebuild in master branch
master: true
branches: false
pullRequests: false
pullRequestsFromForks: false
addCheck: false
addComment: false
addBadge: false
tasks:
- name: Installing Dependencies
before: cd backend
init: |
echo '📦 Installing Dependencies'
npm install && npm run build
cp .env.template .env
- name: Docker Setup
before: cd backend
command: |
echo '🚀 Starting Docker - PostgreSQL - Adminer'
docker-compose pull
gp sync-done "docker-up"
docker-compose up
- name: Start API Server
before: cd backend
init: |
gp sync-await "docker-up" && sleep 45s
npx prisma migrate dev
command: |
gp sync-await "docker-up" && sleep 5s
gp sync-done "server-api-up"
npm run start:dev
- name: Web Dapp Server
before: cd frontend_app
command: |
gp sync-await "server-api-up"
echo METAPP_API_URL=$(gp url 3001) >> .env.template
cp .env.template .env
yarn && yarn run dev
ports:
- port: 8080
visibility: public
onOpen: ignore
- port: 3000
visibility: public
onOpen: open-browser
- port: 3001
visibility: public
onOpen: ignore
- port: 5432
onOpen: ignore
vscode:
extensions:
- ms-azuretools.vscode-docker