laravel - 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))
这里有什么问题
解决方案
推荐阅读
- sql - SSRS 查询参数无法正常工作
- pthreads - pthread_attr_t 默认属性 - 官方文档
- ios - 无法使用 Transporter 将应用程序上传到 iTunesConnect
- amazon-web-services - 如何在使用打包程序构建 AWS AMI 时解决 spin-clouddriver-57bdcf65fd-dm5mq 和 spin-clouddriver-57bdcf65fd-fpqh9 错误
- command - Windows 终端:打开多个窗格并执行指定命令
- spring - spring data mongo多数据库事务如何实现
- python - 具有现有 while 循环的 Pi GUI
- php - 准备请求
- r - 将多个图分成 4 个不同的图
- javascript - 在frida中生成特定值时如何hook