mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
fix: Add gitpod configuration
This commit is contained in:
56
.gitpod.yml
56
.gitpod.yml
@ -1,48 +1,30 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Dependencies & Database
|
- init: |
|
||||||
init: |
|
cp .env.example .env &&
|
||||||
npm install &&
|
set -a; source .env &&
|
||||||
npm run docker:compose-up &&
|
npm run dx &&
|
||||||
cp .env.gitpod .env &&
|
sed -i -e "s|http://localhost:3000|$(gp url 3000)|" .env \
|
||||||
next_auth_secret=$(openssl rand -base64 32) &&
|
-e "s|http://localhost:3001|$(gp url 3001)|" .env \
|
||||||
sed -i -e "s|^NEXTAUTH_SECRET=.*|NEXTAUTH_SECRET=$next_auth_secret|" .env &&
|
-e "s|http://localhost:9000|$(gp url 9000)|" .env
|
||||||
sed -i "s|NEXTAUTH_URL=\"\"|NEXTAUTH_URL=https://3000-${HOSTNAME}.${GITPOD_WORKSPACE_CLUSTER_HOST}|" .env &&
|
command: npm run dev
|
||||||
sed -i "s|NEXT_PUBLIC_WEBAPP_URL=\"\"|NEXT_PUBLIC_WEBAPP_URL=https://3000-${HOSTNAME}.${GITPOD_WORKSPACE_CLUSTER_HOST}|" .env
|
|
||||||
command: npm run d
|
|
||||||
|
|
||||||
- name: Database Studio
|
|
||||||
command: |
|
|
||||||
gp ports await 3000
|
|
||||||
npm run db-studio
|
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- name: App
|
- port: 3000
|
||||||
port: 3000
|
|
||||||
visibility: public
|
visibility: public
|
||||||
onOpen: open-browser
|
onOpen: open-preview
|
||||||
|
- port: 3001
|
||||||
- name: Mailbox
|
visibility: public
|
||||||
port: 9000
|
onOpen: open-preview
|
||||||
|
- port: 9000
|
||||||
visibility: public
|
visibility: public
|
||||||
onOpen: open-browser
|
|
||||||
|
|
||||||
- name: Database
|
|
||||||
port: 54320
|
|
||||||
visibility: private
|
|
||||||
onOpen: ignore
|
onOpen: ignore
|
||||||
|
|
||||||
- name: Mailserver
|
|
||||||
port: 2500
|
|
||||||
visibility: private
|
|
||||||
onOpen: ignore
|
|
||||||
|
|
||||||
- name: Database Studio
|
|
||||||
port: 5555
|
|
||||||
visibility: public
|
|
||||||
|
|
||||||
- port: 1100
|
- port: 1100
|
||||||
visibility: private
|
visibility: private
|
||||||
onOpen: ignore
|
onOpen: ignore
|
||||||
|
- port: 2500
|
||||||
|
visibility: private
|
||||||
|
onOpen: ignore
|
||||||
|
|
||||||
|
|
||||||
github:
|
github:
|
||||||
prebuilds:
|
prebuilds:
|
||||||
@ -55,6 +37,4 @@ github:
|
|||||||
|
|
||||||
vscode:
|
vscode:
|
||||||
extensions:
|
extensions:
|
||||||
- esbenp.prettier-vscode
|
|
||||||
- bradlc.vscode-tailwindcss
|
- bradlc.vscode-tailwindcss
|
||||||
- Prisma.prisma
|
|
||||||
|
|||||||
Reference in New Issue
Block a user