From 6e42ef45426165688a588050d6ef4247e7a29244 Mon Sep 17 00:00:00 2001 From: Marcin Jachymiak Date: Wed, 29 Jan 2020 17:30:40 -0500 Subject: [PATCH] Add pm2 command and fixups --- setup.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index 05aae8f8..d6292bef 100755 --- a/setup.sh +++ b/setup.sh @@ -31,7 +31,7 @@ wget -c https://dl.google.com/go/go1.13.7.linux-amd64.tar.gz sudo tar -C /usr/local -xzf go1.13.7.linux-amd64.tar.gz rm go1.13.7.linux-amd64.tar.gz -# Sanity check that will pass if go installed correctly. +# Sanity check that will pass if go was installed correctly. go version # Install Sia @@ -52,7 +52,11 @@ sudo certbot --nginx -d siasky.net -d www.siasky.net sudo certbot renew --dry-run sudo ln -s /etc/nginx/sites-available/skynet /etc/nginx/sites-enabled/skynet - -git clone https://gitlab.com/NebulousLabs/siawebviewer +# Setup skynet frontend. +cd ~/ +git clone https://gitlab.com/NebulousLabs/siawebviewer && cd siawebviewer git checkout logging yarn + +# Start the frontend. +pm2 --name skynet start npm -- start