Laravel Forge - Complete List of Past Deployment Logs
When using the Forge interface, you can always view the Latest Deployment Log. What I'm trying to reach, is the complete list of past deployment logs. Is that possible? The log files' location also works as I have SSH access to the actual server.
yes you can.. but you have to SSH in to your server and go to a hidden .forge directory. by default forge keeps the last x deployment logs, not only that it will also keep cron jobs/consoloe logs there as well..
i am not 100% sure where this directory is, from memory it might be in your home so do cd ~/home and then ls -al to view all directories... (if not there it should be on your SITEs folder but the first one sounds like a more distinct possibility)
For others that come across this question, you have to look for ./forge/provision-* files. For each 'provision' you'll find a .sh and a .output file. As the names suggest, first one includes the commands that were run and the second one includes the output of all those commands.