-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.gitpod.yml
32 lines (29 loc) · 1.36 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
image:
file: .gitpod.dockerfile
github:
prebuilds:
branches: true
ports:
- port: 3000
onOpen: ignore
# We open this port because it's the port that nginx is serving and which is federating the other services (web app and chain in this case)
- port: 8000
onOpen: open-browser
- port: 8900
onOpen: ignore
- port: 8080
onOpen: ignore
- port: 8888
onOpen: ignore
- port: 9876
onOpen: ignore
tasks:
- name: WebApp
init: yarn
# We need the $PWD here because this path is not resolved from the current folder but from the path nginx runs from. $PWD is the workspace path where the copy of the repo files is
command: alias ls='ls -al --color'; nginx -c $PWD/.gitpod.nginx.conf; yarn startInGitpod
- name: Blockchain
before: alias ls='ls -al --color' && $PWD/eosio/scripts/replaceUrlInAppManifest.sh && $PWD/eosio/scripts/deploy_contracts.sh "" IS_GITPOD && cleos wallet unlock --password </password
command: nodeos --config-dir $PWD/eosio/chain/config --data-dir $PWD/eosio/chain/data -e -p eosio --plugin eosio::chain_api_plugin --contracts-console
- name: README
command: echo -e "\n\n\n\n\n\nPlease wait a moment while the blockchain and web app initialize.\n\n----------------------------------\n\n\n ==>> PLEASE minimally read the section of the README (above) related to Gitpod for important instructions.\n\n\n-----------------------------\n\n\n\n\n\n"