Closed sinnbeck closed 4 years ago
so would that would us the means to run up a 'served' instance for a non Laravel project?
If so, I am up for that.
Not currently no, as a none laravel project does not have config files. I think that way of doing things is more what Takeout is meant to do :) https://github.com/tighten/takeout
The idea here is to simply place a php file called served, next to artisan, so you can use that directly.
I might consider making a none laravel served later on, but my fear is that it will just end up being docker-compose all over again, as I dont know what other php platforms need (php modules and such). Doing it to fit with laravels specs, is alot more manageable :)
Keeping it laravel specific makes sense. How does served differ from takeout? Is that we’re providing a quicker means to get up and running? The same way homestead is just a plug-in and play version of vagrant?
Takeout sets up your containers using promts. So first you tell it you want to set up redis. Then it asks what port to use etc. And it isnt laravel specific (it just creates containers). It is a global composer package for docker so to say. Also it does not come with php as it is meant to use the php version running on your machine (Valet).
The big difference here is that
Served being standalone (like homestead) is a real bonus for me. Even though I've got native PHP/ mysql running on my Mac, being able to version locking it is the reason I'm using either of these.
How much work do you think it would be to switch over to laravel zero? I've only just come across that, so would be interested in getting involved if its tangible.
I will try making a PR this weekend at the latest. Shouldn't take more than a few hours I think.
Bad news. I read through the documentation and code, and there does not seem to be any way to extend served if I use laravel zero. That is an idea I really want in there (the user can add their own custom service).
I might look into writing my own instead, but I am going to shelve this for now.
I consider switching to laravel zero and allow the user to publish a served executable to your project.
Will make it possible to simply run
Any thoughts?