01-14-2018, 12:35 PM
I have pm2 & gekko running on a headless RPi3; however, I haven't done anything beyond importing data and setting up API. Here are the steps I took, I actually wrote them down in case I had to redo it all. I am using latest Raspbian lite installed from an img using etcher. Also, I ran apt-get update and apt-get upgrade immediately. Hope what follow helps. Sorry for poor formatting, copy/paste from evernote caused problems.
sudo apt-get install nodejs -y
Install git
sudo apt-get install git
Install gekko
git clone git://github.com/askmike/gekko.git
cd gekko
Start gekko
node gekko --ui (must be in ~/gekko) OR node /filepath/gekko --ui (from anywhere)
If you want to use pm2, do following BEFORE starting gekko, but after everything else:
Run gekko (from ~/gekko)
pm2 start /file path to folder/gekko -- --ui (the first -- sends next option to app.js)
Run pm2 at startup
pm2 startup
Save process incase of restart
pm2 save
- Install nodejs and npm (https://www.raspberrypi.org/forums/viewt...p?t=141770)
- curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
- 6.x is latest verstion, but should be replaced by current version if available
- Install gekko dependencies
- npm install --only=production
- Install pm2
- sudo npm install pm2@latest -g