Skip to content

Events Redeployment

Sng Ping Chiang edited this page Jul 30, 2018 · 1 revision
  • Comment out schedules in crontab. Edit with sudo crontab -e
  • Stop all processes sudo supervisorctl stop all
  • Back up config.json and protocol.json if no backup.
  • Create a repository tag for the particular commit e.g: v2.7.4e
  • sudo docker build https://github.com/ConjurTech/neo-cli.git#v2.7.4e:neo-cli -t neo-cli:2.7.4e
  • sudo docker run neo-cli:2.7.4e
  • sudo rm -rf /opt/neo-cli
  • sudo docker ps -a
  • sudo docker cp <container-id>:/app /opt/neo-cli
  • sudo chown -R ubuntu:ubuntu /opt/neo-cli
  • cp ~/config.json /opt/neo-cli
  • cp ~/protocol.json /opt/neo-cli
  • sudo supervisorctl restart all
  • Check logs for errors. var/log/supervisorctl
  • Uncomment schedules in crontab. Edit with sudo crontab -e
Clone this wiki locally