From 48c8521d8ae8415249b18fcd6692042df0a3299f Mon Sep 17 00:00:00 2001 From: ding <82033388+ibiding@users.noreply.github.com> Date: Sat, 10 Apr 2021 11:52:51 +0800 Subject: [PATCH 1/6] Update node.js.yml --- .github/workflows/node.js.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index f37a3df2..10fc42d3 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -16,8 +16,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 14.x, 15.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + node-version: [14.x] steps: - uses: actions/checkout@v2 @@ -26,5 +25,5 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm ci - - run: npm run build --if-present + #- run: npm run build --if-present - run: npm test From a9ccfd3204350ee2be8a7878576b668e3e1870fe Mon Sep 17 00:00:00 2001 From: ding <82033388+ibiding@users.noreply.github.com> Date: Sat, 10 Apr 2021 12:24:22 +0800 Subject: [PATCH 2/6] Update node.js.yml --- .github/workflows/node.js.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 10fc42d3..c338701c 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -25,5 +25,4 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm ci - #- run: npm run build --if-present - run: npm test From 7a7131f2b88ae2697cd401ba8631fb7b9e196253 Mon Sep 17 00:00:00 2001 From: ding <82033388+ibiding@users.noreply.github.com> Date: Sat, 10 Apr 2021 12:25:16 +0800 Subject: [PATCH 3/6] Update node.js.yml --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index c338701c..a4f63747 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -12,7 +12,7 @@ on: jobs: build: - runs-on: self-hosted-runner + runs-on: look@dingyi strategy: matrix: From 4ee52c3265456b0d4097be33d13f196e9a1c053b Mon Sep 17 00:00:00 2001 From: ding <82033388+ibiding@users.noreply.github.com> Date: Sat, 10 Apr 2021 12:27:37 +0800 Subject: [PATCH 4/6] Update node.js.yml --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index a4f63747..b40184b8 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -12,7 +12,7 @@ on: jobs: build: - runs-on: look@dingyi + runs-on: self-hosted strategy: matrix: From a01498067ba3eebdda6403b9178d4d42d8d1700a Mon Sep 17 00:00:00 2001 From: ding <82033388+ibiding@users.noreply.github.com> Date: Sat, 10 Apr 2021 14:49:00 +0800 Subject: [PATCH 5/6] Update node.js.yml --- .github/workflows/node.js.yml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index b40184b8..a684fb62 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,7 +1,7 @@ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: Node.js CI +name: Look CI on: push: @@ -10,19 +10,15 @@ on: branches: [ master ] jobs: - build: - + deploy: + name: Look deploy runs-on: self-hosted - - strategy: - matrix: - node-version: [14.x] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm test + - name: Git Checkout master + uses: actions/checkout@master + + - name: PM2 status + run: pm2 status + + - name: deploy + run: cd server && npm i && npm run start From 875e23e02262f1cd9cbc1f51180c09874157235a Mon Sep 17 00:00:00 2001 From: ding <82033388+ibiding@users.noreply.github.com> Date: Sat, 10 Apr 2021 15:52:39 +0800 Subject: [PATCH 6/6] Update .env --- server/.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/.env b/server/.env index 18c74e09..8293fd49 100644 --- a/server/.env +++ b/server/.env @@ -1,4 +1,4 @@ -PORT=80 +PORT=8888 # local # Mongodb_url=127.0.0.1:27017/look