This commit is contained in:
Leandro Facchinetti 2020-03-20 23:54:56 -04:00
parent 1bebe4327d
commit 05b83858d9
1 changed files with 6 additions and 6 deletions

View File

@ -41,7 +41,10 @@
"apps": [ "apps": [
{ {
"name": "kill-the-newsletter", "name": "kill-the-newsletter",
"script": "lib" "script": "lib",
"env": {
"NODE_ENV": "production"
}
} }
], ],
"deploy": { "deploy": {
@ -51,7 +54,7 @@
"ref": "origin/master", "ref": "origin/master",
"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 -) && sudo apt-get install -y nodejs build-essential && (curl https://getcaddy.com | bash -s personal) && (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 && wget -O /usr/local/bin/caddy https://github.com/caddyserver/caddy/releases/download/v2.0.0-beta.18/caddy2_beta18_linux_amd64 && chmod +x /usr/local/bin/caddy && (ssh -o StrictHostKeyChecking=no git@github.com || true)",
"ssh_options": [ "ssh_options": [
"ForwardAgent=yes", "ForwardAgent=yes",
"StrictHostKeyChecking=no" "StrictHostKeyChecking=no"
@ -67,10 +70,7 @@
"https://pm2.keymetrics.io/docs/usage/startup/", "https://pm2.keymetrics.io/docs/usage/startup/",
"host: kill-the-newsletter.com", "host: kill-the-newsletter.com",
"test: basic application workflow, previously created newsletter, /feeds/ directory listing, port 8000 isnt responding" "test: basic application workflow, previously created newsletter, /feeds/ directory listing, port 8000 isnt responding"
], ]
"env": {
"NODE_ENV": "production"
}
} }
} }
} }