Skip to content

Commit 35e79b5

Browse files
committed
Update stackscript
1 parent 04cceac commit 35e79b5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

stackscript.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ exit
2323
# Install Google Chrome
2424
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
2525
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
26-
sudo apt update && sudo apt install google-chrome-stable # 79.0.3945.130-1
26+
sudo apt update && sudo apt install google-chrome-stable # 80.0.3987.87
2727
google-chrome-stable --version
2828

2929
sudo apt install -y curl python-software-properties
3030
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
3131
sudo apt update && sudo apt install -y nodejs
3232
node -v
3333

34-
git clone git@github.com:Steemhunt/prerender.git
34+
git clone https://github.com/Steemhunt/prerender.git
3535
cd ~/prerender && npm install
3636

3737
# Demonize server
3838
sudo npm install -g pm2@latest
3939
# CACHE_MAXSIZE=10000 CACHE_TTL=1200 pm2 start prerender.js --node-args="--max_old_space_size=15000" # 10,000 items for 10 minutes / memory limit 15G
40-
pm2 start prerender.js --max-memory-restart 500M
40+
pm2 start prerender.js # --max-memory-restart 200M
4141
pm2 startup systemd # and copy the last command

stackscript_cent_os.sh

+2
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ cd ~/prerender && npm install
1717
sudo npm install -g pm2@latest
1818
CACHE_MAXSIZE=10000 CACHE_TTL=600 pm2 start server.js # 10,000 items for 10 minutes
1919
pm2 startup systemd # and copy the last command
20+
21+
yum -y install epel-release && yum -y update && yum -y install htop

0 commit comments

Comments
 (0)