简体   繁体   中英

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

How can I solve this problem?

Check the permissions for your db directory, it seems your user does not have write permission for it.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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