From c70ac68e914f4ce81b0c7b10eb34b70201895e66 Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Fri, 20 Mar 2020 17:09:27 -0400 Subject: [PATCH] . --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8c123b6..397004e 100644 --- a/package.json +++ b/package.json @@ -51,13 +51,14 @@ "ref": "origin/master", "repo": "git@github.com:leafac/www.kill-the-newsletter.com.git", "path": "/root/www.kill-the-newsletter.com", - "pre-setup": "(ssh -o StrictHostKeyChecking=no git@github.com || true) && apt-get update && apt-get install -y build-essential software-properties-common && (curl -sL https://deb.nodesource.com/setup_13.x | bash -) && add-apt-repository universe && add-apt-repository ppa:certbot/certbot && apt-get install -y nodejs certbot", + "pre-setup": "(ssh -o StrictHostKeyChecking=no git@github.com || true) && apt-get update && apt-get install -y build-essential software-properties-common && (curl -sL https://deb.nodesource.com/setup_13.x | bash -) && add-apt-repository universe && add-apt-repository ppa:certbot/certbot && apt-get install -y nodejs certbot && certbot certonly --standalone --non-interactive --agree-tos --email kill-the-newsletter@leafac.com --domain kill-the-newsletter.com --domain www.kill-the-newsletter.com", "ssh_options": [ "ForwardAgent=yes", "StrictHostKeyChecking=no" ], "TODO": [ "https://certbot.eff.org/docs/using.html", + "--pre-hook '/root/www.kill-the-newsletter.com/current/node_modules/.bin/pm2 stop all' --post-hook '/root/www.kill-the-newsletter.com/current/node_modules/.bin/pm2 start all'", "env NODE_ENV=production npm ci", "rsync", "pm2 startup OR pm2 save",