forked from novuhq/novu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
65 lines (65 loc) Β· 1.93 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
62
63
64
65
image:
file: .gitpod.dockerfile
tasks:
- init: npm_config_yes=true pnpm setup:project && gp sync-done setup
command: mkdir -p /workspace/data && mongod --dbpath /workspace/data
- init: gp sync-await setup
command: redis-server
- name: Shared Library
init: gp sync-await setup
command: cd libs/shared && pnpm start
- name: DAL
init: gp sync-await setup
command: cd libs/dal && pnpm start
- name: TESTING LIB
init: gp sync-await setup
command: cd libs/testing && pnpm start
- name: API
init: gp sync-await setup
command: cd apps/api && pnpm start
- name: WS
init: gp sync-await setup
command: cd apps/ws && pnpm start
- name: WEB
init: gp sync-await setup
command: |
cd apps/web
API_URL=`gp url 3000`
WS_URL=`gp url 3002`
sed -i "/REACT_APP_API_URL=/c\REACT_APP_API_URL=$API_URL" .env
echo "REACT_APP_WS_URL=$WS_URL" >> .env
pnpm envsetup && pnpm start
- name: WIDGET
init: gp sync-await setup
command: |
cd apps/widget
API_URL=`gp url 3000`
WS_URL=`gp url 3002`
sed -i "/REACT_APP_API_URL=/c\REACT_APP_API_URL=$API_URL" .env
sed -i "/REACT_APP_WS_URL=/c\REACT_APP_WS_URL=$WS_URL" .env
pnpm envsetup && pnpm start:dev
ports:
- port: 4200
onOpen: open-preview
visibility: public
- port: 4500
onOpen: notify
visibility: public
- port: 3000
onOpen: notify
visibility: public
- port: 3002
onOpen: notify
visibility: public
github:
prebuilds:
# enable for the master/default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
branches: true
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# add a check to pull requests (defaults to true)
addCheck: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
addComment: true