-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.gitpod.yml
60 lines (57 loc) · 1.76 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
image:
file: .gitpod.Dockerfile
ports:
- port: 3000 # API
onOpen: ignore
- port: 3001 # Dashboard
onOpen: open-browser
- port: 3002 # Widget
onOpen: open-preview
- port: 6379 # Redis
onOpen: ignore
tasks:
- name: Redis
command: > # Start Redis
redis-server
- name: MongoDB
command: > # Start MongoDB
mkdir -p /workspace/data && mongod --dbpath /workspace/data
- name: API
command: > # Start API
nvm install 13 &&
cd api &&
cp .env.gitpod .env &&
yarn --mutex file:/tmp/.yarn-mutex &&
yarn dev
- name: Dashboard
command: > # Start Dashboard
export REACT_APP_API_ENDPOINT=`gp url 3000`/ &&
gp await-port 3000 &&
cd dashboard &&
yarn --mutex file:/tmp/.yarn-mutex &&
PORT=3001 SASS_PATH=./node_modules yarn start
- name: Widget
command: > # Start Widget
export REACT_APP_API_ENDPOINT=`gp url 3000`/ &&
gp await-port 3000 &&
cd widget &&
yarn --mutex file:/tmp/.yarn-mutex &&
PORT=3002 yarn start
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
# enable for pull requests coming from forks (defaults to false)
pullRequestsFromForks: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to true)
addComment: true
# add a "Review in Gitpod" button to pull requests (defaults to false)
addBadge: true
# add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: true
# add a check to pull requests (defaults to true)
addCheck: true