Skip to content

Commit

Permalink
use nvm for node version mgmt
Browse files Browse the repository at this point in the history
  • Loading branch information
janoside committed Nov 29, 2018
1 parent dd9e40e commit ab6cde8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/Server-Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
apt update
apt upgrade
apt install git python-software-properties software-properties-common nginx gcc g++ make
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
apt install -y nodejs
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
nvm install 10.14.1 ## LTS release of NodeJS as of 2018-11-29, via https://nodejs.org/en/
npm install pm2 --global
add-apt-repository ppa:certbot/certbot
apt update
Expand All @@ -20,4 +20,5 @@ Copy content from [./btc-explorer.com.conf](./btc-explorer.com.conf) into `/etc/
git clone https://github.com/janoside/btc-rpc-explorer.git
cd /home/bitcoin/btc-rpc-explorer
npm install
npm run build
pm2 start bin/www --name "btc-rpc-explorer"

0 comments on commit ab6cde8

Please sign in to comment.