-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.gitpod.yml
61 lines (54 loc) · 1.91 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.
image:
file: .gitpod.Dockerfile
ports:
# Open the following two ports in the browser
- port: 3000 # The application frontend
onOpen: open-browser
- port: 7000 # YugabyteDB UI Console
onOpen: notify
# Disable notifications about the following ports
- port: 8000
visibility: public
onOpen: ignore
- port: 5433
onOpen: ignore
- port: 9042
onOpen: ignore
- port: 7100
onOpen: ignore
- port: 9000
onOpen: ignore
- port: 9100
onOpen: ignore
- port: 12000
onOpen: ignore
- port: 13000
onOpen: ignore
tasks:
- name: YugabyteDB Cluster
command: |
yugabyted start --base_dir=$STORE/node1 --listen=127.0.0.1
yugabyted start --base_dir=$STORE/node2 --listen=127.0.0.2 --join=127.0.0.1
yugabyted start --base_dir=$STORE/node3 --listen=127.0.0.3 --join=127.0.0.1
- name: YugabyteDB Shell
command: |
gp ports await 5433
ysqlsh
openMode: split-right
- name: Server Start
init: cd products_service && npm install && cd ..
command: |
gp ports await 5433
DATABASE_NAME=yugabyte NODE_CONFIG_DIR=products_service/config NODE_ENV=gitpod node products_service/seed.js
DATABASE_NAME=yugabyte NODE_CONFIG_DIR=products_service/config NODE_ENV=gitpod NODE_APP_INSTANCE=los-angeles node products_service/index.js
openMode: split-right
- name: Client Start
init: cd tlr-ui && npm install
command: |
export REACT_APP_GITPOD_SERVER_URL=$(gp url 8000)
echo "This is the Gitpod server url:"
echo $REACT_APP_GITPOD_SERVER_URL
REACT_APP_GITPOD_SERVER_URL=$REACT_APP_GITPOD_SERVER_URL DANGEROUSLY_DISABLE_HOST_CHECK=true REACT_APP_ENV_IS_GITPOD=true npm run start