Skip to content

Instantly share code, notes, and snippets.

@p1nox
Created January 20, 2020 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p1nox/e61daab19e01cb365c34c477cb1b9652 to your computer and use it in GitHub Desktop.
Save p1nox/e61daab19e01cb365c34c477cb1b9652 to your computer and use it in GitHub Desktop.
Renew https certificate: certbot + pm2
#!/usr/bin/env bash
pm2 stop web_server
certbot renew --standalone --preferred-challenges http
pm2 start web_server
#!/usr/bin/env bash
pm2 start server.js --name "web_server" --node-args="--max_old_space_size=10000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment