Common shell commands - Fabian-Sommer/HeroesLounge GitHub Wiki

You can add these scripts:

echo '/opt/lampp/bin/mysql -u root hl' | sudo tee /usr/local/bin/hldb && sudo chmod +x /usr/local/bin/hldb
echo 'tail -f /opt/lampp/htdocs/hl/storage/logs/system.log' | sudo tee /usr/local/bin/hllogs && sudo chmod +x /usr/local/bin/hllogs
echo 'sudo /opt/lampp/lampp restart' | sudo tee /usr/local/bin/hlrestart && sudo chmod +x /usr/local/bin/hlrestart

And then you can run:

  • hldb to open the mysql db
  • hllogs to tail the php logs
  • hlrestart to restart all the October CMS services (apache, mysql, ftp) if necessary