From 3fae7b7edc8cdc8e1a929371321b418271d6f8be Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Tue, 11 Oct 2022 01:20:15 +0800 Subject: [PATCH] chore: fix gitpod (#2104) --- .gitpod.yml | 3 ++- package.json | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 097744dd9..70a454875 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -12,12 +12,13 @@ tasks: cd - command: | export ENDPOINT=$(gp url 3001) + pnpm cli db seed pnpm lerna --ignore=@logto/integration-test run --parallel dev env: ALL_YES: 1 NO_INQUIRY: 0 TRUST_PROXY_HEADER: 1 - DB_URL_DEFAULT: postgres://postgres:p0stgr3s@127.0.0.1:5432 + DB_URL: postgres://postgres:p0stgr3s@127.0.0.1:5432 ports: - name: Logto diff --git a/package.json b/package.json index 96439c4e2..e5450055b 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,10 @@ "prepack": "lerna run --stream prepack", "dev": "lerna run --stream prepack -- --incremental && lerna --ignore=@logto/integration-tests run --parallel dev", "start": "cd packages/core && NODE_ENV=production node . --from-root", - "cli": "cd packages/core && logto", - "alteration": "cd packages/core && pnpm alteration", + "//": "For production, use NPM instead", + "cli": "cd packages/core && npm run cli", + "//": "For production, use NPM instead", + "alteration": "cd packages/core && npm run alteration", "ci:build": "lerna run --stream build", "ci:lint": "lerna run --parallel lint", "ci:stylelint": "lerna run --parallel stylelint",