Created
January 20, 2020 15:30
-
-
Save p1nox/e61daab19e01cb365c34c477cb1b9652 to your computer and use it in GitHub Desktop.
Renew https certificate: certbot + pm2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
pm2 stop web_server | |
certbot renew --standalone --preferred-challenges http | |
pm2 start web_server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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