From 8d08525766134c708cc89efa1cf4ffc201402214 Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Fri, 20 Mar 2020 01:54:55 -0400 Subject: [PATCH] . --- .github/workflows/main.yml | 4 ++-- package.json | 7 +++++++ src/tasks.ts | 5 ----- 3 files changed, 9 insertions(+), 7 deletions(-) delete mode 100644 src/tasks.ts diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3ec0400..8faa897 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,10 +11,10 @@ jobs: - uses: webfactory/ssh-agent@v0.2.0 with: ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - if: github.ref == 'ref/heads/master' + if: github.ref == 'refs/heads/master' - run: | ssh -o StrictHostKeyChecking=no -A root@204.48.21.111 'ssh git@github.com' - if: github.ref == 'ref/heads/master' + if: github.ref == 'refs/heads/master' # - run: | # mkdir ~/.ssh # echo "${{ secrets.SECRET_PRIVATE_DEPLOY_KEY }}" > ~/.ssh/id_rsa diff --git a/package.json b/package.json index 3206de5..3da27e7 100644 --- a/package.json +++ b/package.json @@ -58,6 +58,13 @@ "ForwardAgent=yes", "StrictHostKeyChecking=no" ], + "TODO": [ + "certbot", + "env NODE_ENVIRONMENT=production npm install", + "rsync", + "pm2 startup OR pm2 save", + "pm2 start env.js" + ], "env": { "NODE_ENV": "production" } diff --git a/src/tasks.ts b/src/tasks.ts deleted file mode 100644 index 66e7bb4..0000000 --- a/src/tasks.ts +++ /dev/null @@ -1,5 +0,0 @@ -// execInFolder(`git pull origin master`); -// execInFolder(`npm ci`); -// TODO: rsync -// TODO: $ pm2 startup OR $ pm2 save -// TODO: $ pm2 start env.js --watch --ignore-watch="node_modules"