* Add setup tasks for gitpod * chore: updating image name * chore: update image to workspace-full * chore: update all instances of workspace:* to file:* * chore: remove workspaces section on package.json * chore: update supabase command to use npx * chore: update gitpod file to use brew to install supabase cli * revert: all instances of file:* to workspace:* * chore: consolidate tasks into two steps * chore: update main to command * Update 20231115082347_remote_schema.sql * check if column exists before creating * Update .gitpod.yml with Supabase setup and project start commands * docs: add gitpod setup to readme * combine all commands * enable gitpod prebuild * remove gitpod prebuild & move dep setup to init * add prebuilds back to config * complete setup gitpod instructions * docs: add docs for gitpod setup --------- Co-authored-by: Obakeng <[email protected]>
45 lines
986 B
YAML
45 lines
986 B
YAML
image: gitpod/workspace-full
|
|
|
|
tasks:
|
|
- name: Setup all projects
|
|
init: |
|
|
pnpm i &&
|
|
cd apps/classroomio-com &&
|
|
cp .env.example .env &&
|
|
cd ../dashboard &&
|
|
cp .env.example .env &&
|
|
cd ../.. &&
|
|
pnpm supabase start
|
|
command: |
|
|
SUPABASE_ANON_KEY=$(pnpm supabase status | grep "anon key" | awk '{print $3}' | tr -d '\\n') &&
|
|
cd apps/dashboard &&
|
|
sed -i "s/PUBLIC_SUPABASE_ANON_KEY=.*/PUBLIC_SUPABASE_ANON_KEY=$SUPABASE_ANON_KEY/g" .env &&
|
|
cd ../.. &&
|
|
pnpm dev
|
|
|
|
ports:
|
|
- port: 3000
|
|
visibility: public
|
|
onOpen: open-browser
|
|
- port: 5173
|
|
visibility: public
|
|
onOpen: open-browser
|
|
- port: 5174
|
|
visibility: public
|
|
onOpen: open-browser
|
|
- port: 54321
|
|
visibility: public
|
|
onOpen: ignore
|
|
- port: 54323
|
|
visibility: public
|
|
onOpen: ignore
|
|
- port: 54324
|
|
visibility: public
|
|
onOpen: ignore
|
|
|
|
github:
|
|
prebuilds:
|
|
master: true
|
|
pullRequests: true
|
|
addComment: true
|