Select Page

Support and Demo Commands

Welcome Forums WitFoo Reselling Partner Resources (Restricted) Support and Demo Commands

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1946
    Charles HerringCharles Herring
    Keymaster

    To erase all data on a deployment: sudo docker exec -i ie php /var/www/html/laravel/artisan migrate:refresh --force
    To create general demo data: sudo docker exec -i ie /bin/bash /var/www/html/laravel/demodata.sh
    To create Cisco focused demo data: sudo docker exec -i ie /bin/bash /var/www/html/laravel/demodatacisco.bash
    To backup the Users and Settings in a deployment /usr/bin/mysql -u witfooadmin --password=H8lazy#s -P 33060 -h mysqldactive.witfoo witfoodb users settings > backup.sql
    To backup all data in a deployment /usr/bin/mysql -u witfooadmin --password=H8lazy#s -P 33060 -h mysqldactive.witfoo witfoodb > backup-full.sql
    To restore Users and settings: /usr/bin/mysql -u witfooadmin --password=H8lazy#s -P 33060 -h mysqldactive.witfoo witfoodb < backup.sql
    To reboot: sudo reboot now
    To clear out docker cache: sudo service superintendent stop ; sudo service docker stop ; sudo rm -rf /data/docker/* ; sudo service docker start ; sudo service superintendent start
    To check start status tail -f /var/log/witfoo-superintendent/status.log
    To shutdown WitFoo Services: sudo service superintendent stop
    To start WitFoo Services: sudo service superintendent start
    To restart WitFoo Services: sudo service superintendent restart
    To disable WitFoo automatic starts sudo systemctl disable superintendent.service
    To enable WitFoo automatic starts sudo systemctl enable superintendent.service
    To reset Admin password: mysql -u witfooadmin --password=H8lazy#s -P33060 -h mysqldactive.witfoo witfoodb -e "delete from users where id > 1;"

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.