drebew5059 2015-07-23 15:16
浏览 25
已采纳

在部署Bedrock-Capistrano时没有加载Dotenv

I'm doing my first Bedrock multisite install using bedrock-capistrano.

Everything works locally, however once deployed, I get

Warning: mysql_connect(): Access denied for user 'nobody'@'localhost' (using password: NO) in <snip>/releases/<snip>/public/wp/wp-includes/wp-db.php on line 1474

Obviously I did set this info in my .env file, and nobody with no password isn't the information I set ;) . I have checked that the env file is properly located; and it is. I have no other logs or error shown. Somehow it feels like it's not accessing the info properly.

Any ideas why could the dotenv not work?

  • 写回答

1条回答 默认 最新

  • doujiyan0971 2015-07-23 17:00
    关注

    bedrock-capistrano, which was supposed to run composer install as part of the deployment, did not do it as expected.

    Connecting to the server over SSH and running composer install manually did the trick to get dotenv to work.

    (Now the issue is "why did composer not work", but that's something else entirely)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办