shpasser / GaeSupportLumen

Google App Engine Support package for Lumen
MIT License
13 stars 2 forks source link

(5.1) cachefs on Google Cloud SDK Shell? #7

Open codemonkeynorth opened 7 years ago

codemonkeynorth commented 7 years ago

I'm trying to work out how to get cachefs working on the local sdk shell. I just get this

file_exists(): Unable to find the wrapper "cachefs" - 
did you forget to enable it when you configured PHP?

i have these related entries in my .env

CACHE_DRIVER=memcached
FILESYSTEM=gae
COMPILED_PATH=cachefs://framework/views

I haven't actually connected a bucket yet. I assume memcache in the sdk doesn't need to connect shell

thanks for any advice J

codemonkeynorth commented 7 years ago

I added these changes to get it working. https://github.com/shpasser/GaeSupportL5/pull/21/files

as noted here detectGAE does not work for the local SDK Shell https://github.com/shpasser/GaeSupportLumen/issues/6 (detectGAE on local google cloud sdk shell returns false)

thanks J

shpasser commented 7 years ago

Feel free to submit a pull request, will try to make it work.

codemonkeynorth commented 7 years ago

it works for me currently with those changes

the reason I'm using templates (and hence the need for the caching) is because I am needing my API to create dynamic email templates, so I use @extends etc on a master layout etc

so whilst Lumen is not really designed for front-end views, in this case it's part of my "microservice"

thanks J