简体   繁体   English

耙子中止权限被拒绝 - /home/u/eol/db/structure.sql

[英]rake aborted Permission denied - /home/u/eol/db/structure.sql

I run the command:我运行命令:

rake eol:db:recreate RAILS_ENV=development

And this happens:这会发生:

rake aborted!耙子中止!
Permission denied - /home/u/eol/db/structure.sql权限被拒绝 - /home/u/eol/db/structure.sql

How can I solve this problem?我怎么解决这个问题?

Check the permissions for your db directory, it seems your user does not have write permission for it.检查您的db目录的权限,您的用户似乎没有写入权限。

Make sure the entire app directory and its subfolders belong to your user:确保整个应用程序目录及其子文件夹属于您的用户:

chown -R `whoami` /home/u/eol

And add the write permission to all folders:并为所有文件夹添加写权限:

chmod -R u+w /home/u/eol

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM