0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/.gitpod.yml

42 lines
961 B
YAML
Raw Normal View History

2022-07-05 03:40:00 -05:00
tasks:
2022-09-05 03:43:35 -05:00
- name: DB Server
init: docker pull postgres:14-alpine
command: docker run -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=p0stgr3s postgres:14-alpine
- name: Logto Dev Mode
2022-07-05 03:40:00 -05:00
init: |
2022-09-05 03:43:35 -05:00
pnpm i
pnpm prepack
2022-09-05 07:27:39 -05:00
cd packages/core
pnpm build
cd -
2022-10-15 11:49:16 -05:00
pnpm cli connector add --official
2022-07-05 03:40:00 -05:00
command: |
2022-09-05 07:27:39 -05:00
export ENDPOINT=$(gp url 3001)
2022-10-10 12:20:15 -05:00
pnpm cli db seed
2022-09-05 07:27:39 -05:00
pnpm lerna --ignore=@logto/integration-test run --parallel dev
2022-07-05 03:40:00 -05:00
env:
2022-09-05 03:43:35 -05:00
TRUST_PROXY_HEADER: 1
2022-10-10 12:20:15 -05:00
DB_URL: postgres://postgres:p0stgr3s@127.0.0.1:5432
2022-07-05 03:40:00 -05:00
ports:
- name: Logto
description: The Logto core service
port: 3001
visibility: public
2022-09-05 03:43:35 -05:00
- name: Postgres
port: 5432
visibility: public
onOpen: ignore
- port: 5001
onOpen: ignore
- port: 5002
onOpen: ignore
- port: 5003
onOpen: ignore
- port: 6001
onOpen: ignore
- port: 6002
onOpen: ignore
- port: 6003
onOpen: ignore