diff --git a/package.json b/package.json index b41ddc4..8c123b6 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "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; 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", "ssh_options": [ "ForwardAgent=yes", "StrictHostKeyChecking=no" @@ -63,7 +63,8 @@ "pm2 startup OR pm2 save", "pm2 start env.js", "https://pm2.keymetrics.io/docs/usage/deployment/", - "https://pm2.keymetrics.io/docs/usage/startup/" + "https://pm2.keymetrics.io/docs/usage/startup/", + "host: kill-the-newsletter.com" ], "env": { "NODE_ENV": "production"