forked from redwoodjs/starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
50 lines (42 loc) · 1.32 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
# To learn about this file, please see https://www.gitpod.io/docs/references/gitpod-yml
image: gitpod/workspace-postgres
tasks:
- init: |
# Cleanup terminal
printf "\033[3J\033c\033[3J"
nvm install 18.16.0
nvm use 18.16.0
# Auto init a redwoodjs project for Gitpod if missing
if test ! -e redwood.toml; then {
# Create
yarn create redwood-app . --overwrite --yes
# Change the default `sqlite` datasource provider to `postgres`
sed -i 's|provider = "sqlite"|provider = "postgres"|' "api/db/schema.prisma"
} else {
yarn install
} fi
command: |
cmd="yarn rw dev"
printf "Executing '%s' ..." "${cmd}"
${cmd}
ports:
- port: 5432
name: PostgreSQL database
onOpen: ignore
- port: 8910
name: RedwoodJS web application
onOpen: notify # because we already have [browser].open = true in redwood.toml
- port: 8911
name: Serverless functions
onOpen: ignore
vscode:
extensions:
- "dbaeumer.vscode-eslint"
- "eamodio.gitlens"
# - "ofhumanbondage.react-proptypes-intellisense" - Not published to Open VSX (yet)
- "mgmcdermott.vscode-language-babel"
- "wix.vscode-import-cost"
- "pflannery.vscode-versionlens"
- "editorconfig.editorconfig"
- "prisma.prisma"
- "graphql.vscode-graphql"