shpasser / GaeSupportL5

Google App Engine Support package for Laravel 5
MIT License
160 stars 27 forks source link

rev-manifest.json): failed to open stream #35

Closed muratsplat closed 8 years ago

muratsplat commented 9 years ago

I try to deploy my laravel app on GAE from VPS. Before that I never have the experience of developing app this type of cloud platform..

Elixir build files is not accessed on GAE. But It works very well on SDK...


file_get_contents(/base/data/home/apps/e~durumum-n/1.387870649534001545/public/build/rev-manifest.json): failed to open stream: No such file or directory (View: /base/data/home/apps/e~durumum-n/1.387870649534001545/resources/views/welcome.blade.php)

out of Stack Trace:


    in helpers.php line 273
    at CompilerEngine->handleViewException(object(ErrorException), '0') in PhpEngine.php line 44
    at PhpEngine->evaluatePath('cachefs://framework/views/eb3063d30de407e04a4541d580f56662', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) in CompilerEngine.php line 58
    at CompilerEngine->get('/base/data/home/apps/e~durumum-n/1.387870649534001545/resources/views/welcome.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) in View.php line 135
    at View->getContents() in View.php line 106
    at View->renderContents() in View.php line 80
    at View->render() in Response.php line 51
    at Response->setContent(object(View)) in Response.php line 202
    at Response->__construct(object(View)) in Router.php line 1225
    at Router->prepareResponse(object(Request), object(View)) in ControllerDispatcher.php line 113
    at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
    at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
    at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 114
    at ControllerDispatcher->callWithinStack(object(Home), object(Route), object(Request), 'index') in ControllerDispatcher.php line 69
    at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\Home', 'index') in Route.php line 203
    at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
    at Route->run(object(Request)) in Router.php line 704
    at Router->Illuminate\Routing\{closure}(object(Request))
    at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
    at Pipeline->then(object(Closure)) in Router.php line 706
    at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 671
    at Router->dispatchToRoute(object(Request)) in Router.php line 631
    at Router->dispatch(object(Request)) in Kernel.php line 236
    at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
    at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 50
    at VerifyCsrfToken->handle(object(Request), object(Closure))
    at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
    at ShareErrorsFromSession->handle(object(Request), object(Closure))
    at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62
    at StartSession->handle(object(Request), object(Closure))
    at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
    at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
    at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59
    at EncryptCookies->handle(object(Request), object(Closure))
    at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
    at CheckForMaintenanceMode->handle(object(Request), object(Closure))
    at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
    at Pipeline->then(object(Closure)) in Kernel.php line 122
    at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
    at Kernel->handle(object(Request)) in index.php line 54

My app.yml

application:    myapp
version:        1
runtime:        php55
api_version:    1

handlers:
        - url: /favicon\.ico
          static_files: public/favicon.ico
          upload: public/favicon\.ico

        - url: /css
          static_dir: public/css

        - url: /assets
          static_dir: public/assets

        - url: /js
          static_dir: public/js

        - url: /build
          static_dir: public/build

        - url: /.*
          script: public/index.php

skip_files:
        - ^(.*/)?#.*#$
        - ^(.*/)?.*~$
        - ^(.*/)?.*\.py[co]$
        - ^(.*/)?.*/RCS/.*$
        - ^(.*/)?\.(?!env).*$
        - ^(.*/)?node_modules.*$
        - ^(.*/)?bower_components.*$
        - ^(.*/)?vendor/almasaeed2010/.*$
        - ^(.*/)?_ide_helper\.php$
        - ^(.*/)?\.DS_Store$
        - ^(.*/)?nbproject.*$

env_variables:
        GAE_SKIP_GCS_INIT: true

What can I do?

shpasser commented 9 years ago

Try adding the following to the handlers section of your app.yaml:

- url: /build
          static_dir: public/build
          application_readable: true

instead of:

- url: /build
          static_dir: public/build

so that the app will be able to access the public/build directory.

muratsplat commented 9 years ago

it is works on GAE

Thanks you..

Maybe this point could added to the documentary.

Laravel Elixir cache-busting doesn't work with default app.yml of your extension ..

Laravel Elixir is useful for developer when L5 app is building with complex assets..

shpasser commented 9 years ago

I'm already on it, just have to figure out the best way of doing it. I agree it should be documented.

shpasser commented 8 years ago

Please update to version 1.4.7.

shpasser commented 8 years ago

My pleasure.

On Nov 3, 2015, at 2:30 PM, Julius Kinuthia notifications@github.com wrote:

Hi shpasser, thank for having this package available to everyone to us.

— Reply to this email directly or view it on GitHub.