From dcdfc28e00fb9983b88ea4c7173c6dc46c70e24b Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Fri, 14 Oct 2022 21:23:42 +0100 Subject: [PATCH 1/2] tweak: Add documentation to daemonize process when running teddit not on a docker container. I've generally found docker gnarly, and try not to use it. In this case, I find pm2 to be a more convenient alternative. It might also be interesting to have better documentation for running this from a reverse proxy, maybe step by step, so that more people can host these instances. --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 69928c2..f678bb1 100644 --- a/README.md +++ b/README.md @@ -193,4 +193,17 @@ The following variables may be set to customize your deployment at runtime. npm start ``` -Teddit should now be running at . +Teddit should now be running at . + +You also run teddit from a process manager like [pm2](https://www.npmjs.com/package/pm2): +``` +## To run: +npm install pm2 -g +pm2 start app.js + +## To run on startup: +pm2 startup +pm2 save +``` + +See also the [pm2 instructions for running a project on startup](https://pm2.keymetrics.io/docs/usage/startup/), and in particular the section on waiting for your machine to connect to its network. From 718d04c4124ae2b8cc7bd5effc88c791c2b46a42 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Fri, 14 Oct 2022 21:28:48 +0100 Subject: [PATCH 2/2] fix: typo --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f678bb1..b0ae8a3 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,8 @@ The following variables may be set to customize your deployment at runtime. Teddit should now be running at . -You also run teddit from a process manager like [pm2](https://www.npmjs.com/package/pm2): +You can also run teddit from a process manager like [pm2](https://www.npmjs.com/package/pm2): + ``` ## To run: npm install pm2 -g