laravel services.json not created

主宰稳场 提交于 2019-12-09 06:45:56

问题


Sometimes my services.json is missing after running composer update or php artisan clear-compiled.

I checked the permissions and even changed it to 777 on the storage folder but it does not help. How can I debug whats wrong?

There are no entries in my laravel log and nothing in my apache log. I'm using "laravel/framework": "4.1.*"


回答1:


Just run a php artisan serve and stop, this will create the services.json file.




回答2:


Ensure your web server has access to the files/folders specifically app/storage/meta/services.json if this file/folder is not there create it and add some json to see if you can accesss it in the browser. If forbidden/denied see permissions below:

Check you have these folders

app/storage/views
app/storage/logs
app/storage/sessions

Set everything to be read/write

chmod -R 777 /app/storage

Create services.json and add the following

    {
        "providers": []
    }

After creating the above try loading the project or php artisan serve



来源:https://stackoverflow.com/questions/23336579/laravel-services-json-not-created

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!