How scripts (Linux Commands) are executed in Laravel Forge?
Curious to know how scripts (Linux Commands) are loaded in Laravel Forge to set up the environment (PHP packages, Web Server etc) in order to run Laravel.
Do we run these scripts from GitHub using Curl, or do we execute these scripts in Laravel?
In short, how are scripts loaded?
*This question has already been asked on Discord but with no response. Not sure if my question is too broad or not good defined ;)
For me, Laravel Forge just works and that is the beauty of it. I do not want to know how they work. If I have a problem with one machine I create a brand new one and I'm done.
Unless what you are asking is how to run own scripts to set up the environment, then the answer would be receipts Laravel Forge provides this and you can run prior to provisioning or past the provisioning of the server.
No problem. In Laravel Forge, when you create a new site, it runs a set of Linux commands such as installing PHP packages, set up NGINX, changing the .htaccess to target index.php instead of index.html and so forth.
I'm not looking for an architectural description, but simply how these commands are executed.
One way could be having these commands in a GitHub repo which one executes using curl, the second could be through Laravel (I'm just guessing this one) and third we run these commands from a VPN server using SSH.