connected-web / gamebot

A slackbot for board games and games channels. Responds to gameplay related chatter.
2 stars 0 forks source link

Create Jenkins job for dev deployment on inhouse Jenkins server (RPi) #78

Closed johnbeech closed 5 years ago

johnbeech commented 6 years ago
chmod +x ./ssh/deploy-to-server.sh
./ssh/deploy-to-server.sh
johnbeech commented 6 years ago

Cali got all this configured on her Jenkins; need to sort out the node version though - stuck at 4 for some reason. There are some instructions for manually updating the version of Node JS on a Raspberry Pi in the asset tracking sheet, copied here for brevity:

wget https://nodejs.org/dist/v8.11.4/node-v8.11.4-linux-armv6l.tar.gz
sudo mv node-v8.11.4-linux-armv6l.tar.gz /opt/nodejs.tar.gz
 
cd /opt
sudo tar -xzf nodejs.tar.gz
sudo mv node-v8.11.4-linux-armv6l nodejs
sudo rm nodejs.tar.gz
 
sudo ln -s /opt/nodejs/bin/node /usr/bin/node
sudo ln -s /opt/nodejs/bin/npm /usr/bin/npm

If node is already installed into /opt/nodejs then a simple fix is to run: rm -rf /opt/nodejs and then rerun everything, skipping the final to commands to create the alias / links.