chore: configure Gitpod

This commit is contained in:
Ahmed Bouhuolia
2023-11-05 02:22:26 +02:00
parent a3d9e8ef2b
commit eeb67d4005
2 changed files with 13 additions and 3 deletions

View File

@@ -1,12 +1,19 @@
tasks:
- name: Init
init: pnpm install && docker-compose pull
command: cp .env.example .env && docker-compose up -d && pnpm run dev
init: |
pnpm install &&
docker-compose pull &&
cp .env.example .env &&
pnpm run build:server &&
node packages/server/build/commands.js system:migrate:latest
command: |
docker-compose up -d &&
pnpm run dev
ports:
- port: 4000
visibility: public
onOpen: open-browser
onOpen: open-preview
- port: 3000
visibility: public
onOpen: ignore

View File

@@ -11,4 +11,7 @@ module.exports = {
},
},
},
devServer: {
allowedHosts: process.env.GITPOD_HOST ? 'all' : 'auto'
},
};