mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
chore: fix gitpod (#2174)
This commit is contained in:
parent
c492058a0c
commit
7e32a587c8
2 changed files with 9 additions and 5 deletions
11
.gitpod.yml
11
.gitpod.yml
|
@ -1,19 +1,22 @@
|
||||||
tasks:
|
tasks:
|
||||||
- name: DB Server
|
- name: Database
|
||||||
init: docker pull postgres:14-alpine
|
init: docker pull postgres:14-alpine
|
||||||
command: docker run -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=p0stgr3s postgres:14-alpine
|
command: docker run -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=p0stgr3s postgres:14-alpine
|
||||||
- name: Logto Dev Mode
|
|
||||||
|
- name: Logto dev
|
||||||
init: |
|
init: |
|
||||||
pnpm i
|
pnpm i
|
||||||
pnpm prepack
|
pnpm prepack
|
||||||
cd packages/core
|
cd packages/core
|
||||||
pnpm build
|
pnpm build
|
||||||
cd -
|
cd -
|
||||||
pnpm cli connector add --official
|
pnpm cli connector add --official -p .
|
||||||
command: |
|
command: |
|
||||||
|
gp ports await 5432
|
||||||
|
sleep 3
|
||||||
export ENDPOINT=$(gp url 3001)
|
export ENDPOINT=$(gp url 3001)
|
||||||
pnpm cli db seed
|
pnpm cli db seed
|
||||||
pnpm -r --parallel --filter=!@logto/integration-tests dev
|
pnpm start:dev
|
||||||
env:
|
env:
|
||||||
TRUST_PROXY_HEADER: 1
|
TRUST_PROXY_HEADER: 1
|
||||||
DB_URL: postgres://postgres:p0stgr3s@127.0.0.1:5432
|
DB_URL: postgres://postgres:p0stgr3s@127.0.0.1:5432
|
||||||
|
|
|
@ -7,7 +7,8 @@
|
||||||
"version": "pnpm i --frozen-lockfile=false && git add pnpm-lock.yaml",
|
"version": "pnpm i --frozen-lockfile=false && git add pnpm-lock.yaml",
|
||||||
"prepare": "if test \"$NODE_ENV\" != \"production\" && test \"$CI\" != \"true\" ; then husky install ; fi",
|
"prepare": "if test \"$NODE_ENV\" != \"production\" && test \"$CI\" != \"true\" ; then husky install ; fi",
|
||||||
"prepack": "pnpm -r prepack",
|
"prepack": "pnpm -r prepack",
|
||||||
"dev": "pnpm -r prepack --incremental && pnpm -r --parallel --filter=!@logto/integration-tests dev",
|
"dev": "pnpm -r prepack --incremental && pnpm start:dev",
|
||||||
|
"start:dev": "pnpm -r --parallel --filter=!@logto/integration-tests dev",
|
||||||
"start": "cd packages/core && NODE_ENV=production node .",
|
"start": "cd packages/core && NODE_ENV=production node .",
|
||||||
"cli": "logto",
|
"cli": "logto",
|
||||||
"alteration": "logto db alt",
|
"alteration": "logto db alt",
|
||||||
|
|
Loading…
Reference in a new issue