0

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?

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343

1 Answers1

3

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
Patrick Oscity
  • 53,604
  • 17
  • 144
  • 168
  • @ZhangQingLong so did this solve your issue? If yes, please accept the answer. If no, please answer your own question to help future visitors and then accept that. Thanks! – Patrick Oscity Nov 14 '13 at 11:22