Setting up the scaleway VPS for the workshop - liskcenterutrecht/lisk.bike GitHub Wiki
V1 - still needs documentation
V2 - still needs documentation
V3 - 20191117 changes to the V2 image
== lisk bike workshop VPS image #3 changes
https://github.com/Unitech/pm2/issues/2348)
fixed wrong pm2 startup rights with (source[fixes error message asking for
sudo chown lisk:lisk /home/lisk/.pm2/rpc.sock /home/lisk/.pm2/pub.sock after boot
]
pm2 unstartup pm2 startup
COPY/PASTE the line shown by pm2 startup
fixed version mismatch between pm2 in memory and on disk
npm install -g pm2
install meteor so that the app can be run local
curl https://install.meteor.com/ | sh
cd lisk-bike/app
git pull
meteor npm install
npm start
setup meteor app for use
- start lisk.bike app
- set mapbox id in system settings
- set lisk provider url to https://brainz.lisk.bike
- create new system wallet
- create new user wallet
install ratom for editing in atom via ssh
curl -o /usr/local/bin/rmate https://raw.githubusercontent.com/aurora/rmate/master/rmate
sudo curl -o /usr/local/bin/rmate https://raw.githubusercontent.com/aurora/rmate/master/rmate
sudo chmod +x /usr/local/bin/rmate
sudo mv /usr/local/bin/rmate /usr/local/bin/ratom
change password for VPS image (prevent prev candidates from messing with new VPS-es)
== 20200302 - getting the brainz.lisk.bike server on-line again
problem 1: disk full
can't start postgresql because the disk is 100% full
df -h -> /dev/vda1 -> 100%
deleted lisk log files
pm2 stop blockchain
sudo su
rm /home/lisk/logs/devnet/*.log
exit
pm start blockchain
reboot
postgre sql should now start again
problem 2: certificate expired
pm2 stop blockchain
sudo certbot --nginx -d brainz.lisk.bike
pm2 start blockchain
sudo certbot renew --dry-run
-> test
reset blockchain to zero state
TODO
setup log rotation for lisk -> https://lisk.io/documentation/lisk-core/configuration.html