-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitpod.yml
25 lines (24 loc) · 958 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
tasks:
- name: Setup
command: |
pnpm run init
GITPOD_CLIENT_BASE_URL="${GITPOD_WORKSPACE_URL/https:\/\//https:\/\/8099-}"
GITPOD_SERVER_BASE_URL="${GITPOD_WORKSPACE_URL/https:\/\//https:\/\/3099-}"
GITPOD_TOOL_BASE_URL="${GITPOD_WORKSPACE_URL/https:\/\//https:\/\/3002-}"
sed -i "s|SERVER_CLIENT_BASE_URL=.*|SERVER_CLIENT_BASE_URL=\"$GITPOD_CLIENT_BASE_URL\"|" ./apps/server/.env
sed -i "s|SERVER_BASE_URL=.*|SERVER_BASE_URL=\"$GITPOD_SERVER_BASE_URL\"|" ./apps/server/.env
sed -i "s|API_BASE_URL=.*|API_BASE_URL=\"$GITPOD_SERVER_BASE_URL\"|" ./apps/web/.env
sed -i "s|TOOL_BASE_URL=.*|TOOL_BASE_URL=\"$GITPOD_TOOL_BASE_URL\"|" ./apps/web/.env
npm install -g @marblism/[email protected]
marblism-studio
ports:
- name: Web
port: 8099
onOpen: open-browser
visibility: public
- name: Server
port: 3099
visibility: public
- name: Tool
port: 3002
visibility: public