Created
March 4, 2018 06:10
-
-
Save dzt/e7bb56eb4979f9d9e3513226e444316a to your computer and use it in GitHub Desktop.
Guide for Setting up Shopify Monitor v3 on the Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On The Raspberry Pi (After Installation of Ubuntu Mate) | |
sudo systemctl restart network-manager | |
sudo service ssh enable | |
————————————————— | |
On your Mac or Windows Command Line | |
ssh <raspberry pi ip> # example: ssh 192.168.1.222 | |
————————————————— | |
Setting Up Mongo DB and Node.js | |
cd ~ | |
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh | |
sudo bash nodesource_setup.sh | |
sudo apt-get update | |
sudo apt-get install nodejs | |
sudo apt-get -f install | |
sudo apt-get install nodejs | |
sudo apt-get install build-essential | |
sudo apt install git | |
sudo apt install tmux | |
sudo apt-get install screen | |
screen | |
tmux | |
CTRL+B % | |
CTRL+B <UP ARROW>. # Use this to switch panes | |
cd ~/Downloads | |
wget https://andyfelong.com/downloads/core_mongodb.tar.gz | |
tar -xzf core_mongodb.tar.gz | |
sudo mkdir -p /data/db | |
sudo ./mongod | |
————————————————— | |
Setting Up Shopify Monitor | |
git clone https://github.com/dzt/shopify-monitor.git | |
cd shopify-monitor | |
sudo npm install | |
mv config.example.json config.json | |
node server | |
————————————————— | |
Notes: | |
When SSHing back into the Monitor type in screen -r to resume session | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment