-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.gitpod.yml
27 lines (24 loc) · 890 Bytes
/
.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
image:
file: .gitpod.Dockerfile
# Learn more about this file at https://www.gitpod.io/docs/references/gitpod-yml
# We grab the dynamically created GITPOD_WORKSPACE_URL, add ports 3000/1, and create
# the .env files necessary for Wasp Routing and CORS
tasks:
- command: |
echo "REACT_APP_API_URL=$(printenv | grep "^GITPOD_WORKSPACE_URL=" | cut -d "=" -f 2 | awk '{gsub("https://","https://3001-")} 1')" >> MyNewApp/.env.client
echo "WASP_WEB_CLIENT_URL=$(printenv | grep "^GITPOD_WORKSPACE_URL=" | cut -d "=" -f 2 | awk '{gsub("https://","https://3000-")} 1')" >> MyNewApp/.env.server
cd MyNewApp
wasp db migrate-dev
wasp start
ports:
- port: 3000
description: Web app
onOpen: open-preview
- port: 3001
visibility: public
description: Node.js server
onOpen: ignore
vscode:
extensions:
- wasp-lang.wasp
- prisma.prisma