From 587aa09efcc6ecb05551454714feb2de1ceeef5c Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 13 Nov 2021 02:12:05 -0800 Subject: [PATCH] Oops, fix bug in pm2 setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Oh, I made a typo that caused pm2 to be running our processes as `root` instead of `matchu`! Let's very fix that!! 😳 I noticed this because I'm trying Puppeteer, and it got upset about running in sandboxed mode as root, and I'm like "as root??" So yeah, good, fixed, lol 😬 --- deploy/playbooks/setup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/playbooks/setup.yml b/deploy/playbooks/setup.yml index e2c8196..e6eab19 100644 --- a/deploy/playbooks/setup.yml +++ b/deploy/playbooks/setup.yml @@ -160,7 +160,7 @@ # process. They'll be able to manage it without `sudo`, including during # normal deploys, and run `pm2 monit` from their shell to see status. become: yes - command: "pm2 startup systemd {{ ansible_user_id }} --hp /home/{{ ansible_user_id }}" + command: "pm2 startup systemd -u {{ ansible_user_id }} --hp /home/{{ ansible_user_id }}" - name: Create pm2 ecosystem file copy: