首页 > 解决方案 > Heroku中的禁止访问

问题描述

我的应用程序托管在 Heroku 中并使用 Mysql ClearDB,我的应用程序是在 laravel 下构建的,并且可以很好地访问它但是当我尝试访问其中一个 URL 时,我得到了

You don't have permission to access /bundles/ on this server.

当我运行命令时

heroku run php artisan clear:cache

我收到一个错误

Failed to clear cache. Make sure you have the appropriate permissions.

另外,当我尝试运行命令时

heroku run php artisan db:seed

我在下面收到错误

 SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user 'XXXXXXXX'@'ec2-XXXX.amazonaws.com' for  table 'model_has_roles' (SQL: insert into `model_has_roles` (`model_id`, ` model_type`, `role_id`) values (1, App\User, 11)) 

这里有什么问题

标签: laravelherokuheroku-cli

解决方案


推荐阅读