diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index f37a3df2..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,21 +10,15 @@ on: branches: [ master ] jobs: - build: - - runs-on: self-hosted-runner - - 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/ - + deploy: + name: Look deploy + runs-on: self-hosted 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 run build --if-present - - 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 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