Ive made a laravel app that is going to be installed by end users, I was wondering if anyone knew how Id go about making an installer that would :
- Download and install Laragon
- Copy my app to the relevant place
- initialise Mysql
- Setup a vhost
- run some artisan command
....pretty much do everything so the user has as little as possible to do, i don't really know where to start.
@AaronKaa: Laragon is very portable, you just simply zip it and send to your customers.
Let me explain:
- You installed Laragon in your machine C:\laragon
- You created a Laravel app name: awesomeapp. There should be a folder name C:\laragon\www\awesomeapp
- The correspond database will be stored in C:\laragon\data....
Just zip it to laragon.zip (or laragon.tar.gz for better compression), then your customers can extract to C:\laragon or \laragon or E:\yourcompany\laragon,... no matter what.
He just run laragon.exe and click Start All button. After a while, he can browser http://awesomeapp.dev and use your app.
- Your customers may use Skype which usually bind to port 80 & 443, so instruct them to unbind the ports
- You can instruct your customers to set Laragon to start with Windows and automatically run all services + Minimize Laragon to system tray. So, when start their computers, they can use your app without doing anything.
Thanks for the reply - I actually got the exact same one on stackoverflow
Have you tried it? In theory it should work.
By the way, I see you had the same question on Stackoverflow and the answer was copied from mine (but he included source)