laravel-db-blade-compiler icon indicating copy to clipboard operation
laravel-db-blade-compiler copied to clipboard

its not working Google App Engine

Open muhammad-shariq opened this issue 5 years ago • 2 comments

anybody please help me to resolve this error on Google App Engine Standard Instance.

file_put_contents(/tmp/app/db-blade-compiler/views/c9f4478432ab0186296c78969026ae3c): failed to open stream: No such file or directory

muhammad-shariq avatar Jan 31 '20 16:01 muhammad-shariq

Looks like the directory doesn't get created automatically... I'm looking for a solution too.

bbredewold avatar Jun 10 '20 13:06 bbredewold

I've just discovered this package, used locally and creating the folder manually solves it. In the package service provider, i could find the solution.

What really matters is the folder to exist, so there are different ways to achieve.

Just run

php artisan vendor:publish --provider="Flynsarmy\DbBladeCompiler\DbBladeCompilerServiceProvider"

in the server that is giving you error... it doesn't matter if in ssh, or in the deploy script, say when you run the migrations.. Never used google app engine..

Other way is to make the folder locally (with same command), and just not ignoring it, to make it part of the repo, and this way it will exist everywhere you deploy...

Run the command, edit storage/app/.gitignore

*
!public/
!db-blade-compiler/
!.gitignore

so that it does not ignore that file...

Should get you going!

ijpatricio avatar Jun 24 '20 14:06 ijpatricio