WordOps icon indicating copy to clipboard operation
WordOps copied to clipboard

Laravel Support

Open miloszorica opened this issue 5 years ago • 4 comments
trafficstars

Is it on a roadmap? I mean, implementing it would be fairly trivial.

miloszorica avatar Jun 11 '20 07:06 miloszorica

I'm not aware of it being on the roadmap. This would easily turn into a rabbit trail though, of many people requesting different things.

You could fork this project into your own as well if you wanted to better support Laravel.

I use Laravel within WordOps already and it works great.

dingman avatar Jun 11 '20 13:06 dingman

Honest comment: I don't understand what people mean by "Laravel Support". Is it that WO would download and install the libraries? Or what?

janiosarmento avatar Jun 15 '20 12:06 janiosarmento

Hello @miloszorica, Laravel should work with WordOps out-of-the-box. You just have to create a site with the flag --mysql before deploying laravel with composer : sudo -u www-data -H composer create-project --prefer-dist laravel/laravel /var/www/yousite.tld/htdocs. The only change to make is editing your vhost to set the the root directory to /var/www/yoursite.tld/htdocs/public. You can use wo site edit yoursite.tld to do so.

VirtuBox avatar Aug 03 '20 17:08 VirtuBox

There is one thing. by default Laravel .env file has 127.0.0.1 as the Mysql host. And the user-created with --mysql flag does not have permission to access via 127.0.0.1. So you have to change the host to "localhost" in .env

vikas5914 avatar Aug 03 '20 18:08 vikas5914

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Dec 22 '23 02:12 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Dec 28 '23 02:12 github-actions[bot]