This commit is contained in:
Leandro Facchinetti 2020-03-21 03:09:04 -04:00
parent d9b027f2f3
commit c9eb7cdcbd
1 changed files with 2 additions and 1 deletions

View File

@ -59,8 +59,9 @@
"repo": "git@github.com:leafac/www.kill-the-newsletter.com.git", "repo": "git@github.com:leafac/www.kill-the-newsletter.com.git",
"path": "/root/www.kill-the-newsletter.com", "path": "/root/www.kill-the-newsletter.com",
"pre-setup": "(curl -sL https://deb.nodesource.com/setup_13.x | bash -) && apt install -y nodejs build-essential && (ssh -o StrictHostKeyChecking=no git@github.com || true)", "pre-setup": "(curl -sL https://deb.nodesource.com/setup_13.x | bash -) && apt install -y nodejs build-essential && (ssh -o StrictHostKeyChecking=no git@github.com || true)",
"post-setup": "env NODE_ENV=production npm ci && npx pm2 startup",
"pre-deploy-local": "rsync -av --delete lib/ root@kill-the-newsletter.com:www.kill-the-newsletter.com/current/lib/", "pre-deploy-local": "rsync -av --delete lib/ root@kill-the-newsletter.com:www.kill-the-newsletter.com/current/lib/",
"post-deploy": "env NODE_ENV=production npm ci && npx pm2 startOrRestart package.json", "post-deploy": "env NODE_ENV=production npm ci && npx pm2 startOrRestart package.json && npx pm2 save",
"ssh_options": [ "ssh_options": [
"ForwardAgent=yes", "ForwardAgent=yes",
"StrictHostKeyChecking=no" "StrictHostKeyChecking=no"