From 56de3fc34a13095816e94869e8303ddb85a940ad Mon Sep 17 00:00:00 2001 From: Chengzhe Date: Sun, 16 Jun 2024 14:31:52 +0000 Subject: [PATCH 1/2] feat: Add PM2 installation commands to install.sh for streamlined setup - Update package list and install jq and npm - Install PM2 globally and update PM2 --- install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install.sh b/install.sh index 5b46c863..410398f9 100644 --- a/install.sh +++ b/install.sh @@ -5,3 +5,12 @@ pip uninstall mathgenerator -y # Installing package from the current directory pip install -e . + +# Updating the package list and installing jq and npm +sudo apt update && sudo apt install -y jq npm + +# Installing PM2 globally +sudo npm install pm2 -g + +# Updating PM2 +pm2 update From 8e6ab40cb87f4ebf9426e4017f7d82c3562d2f71 Mon Sep 17 00:00:00 2001 From: Chengzhe Date: Tue, 18 Jun 2024 14:00:08 +0000 Subject: [PATCH 2/2] remove sudo from the commands in install.sh --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 410398f9..5e8c1d66 100644 --- a/install.sh +++ b/install.sh @@ -7,10 +7,10 @@ pip uninstall mathgenerator -y pip install -e . # Updating the package list and installing jq and npm -sudo apt update && sudo apt install -y jq npm +apt update && apt install -y jq npm # Installing PM2 globally -sudo npm install pm2 -g +npm install pm2 -g # Updating PM2 pm2 update