ruby-on-rails - rake :db seed issue with Catarse

标签 ruby-on-rails git database-migration seeding

我正在尝试克隆 Catarse 存储库:Git catarse

我一直走到最后,但是当我尝试运行 rake db:seed 时,我收到以下错误消息:

rake aborted!
Errno::ENOENT: No such file or directory @ dir_initialize - /Users/'USERNAME'/Desktop/my_websites/crowdfund_test/catarse/tmp/cache/
/Users/'USERNAME'/Desktop/my_websites/crowdfund_test/catarse/db/seeds.rb:116:in `<top (required)>'
Tasks: TOP => db:seed

你知道为什么吗?

最佳答案

我遇到了同样的问题。然后我意识到我没有目录

/yourPath/catarse/tmp/cache/

创建它后,播种工作就很好!

关于ruby-on-rails - rake :db seed issue with Catarse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34142989/

相关文章:

ruby-on-rails - 为什么我的 Rails URL 路由呈现的 URL 带有点而不是斜杠?

ruby-on-rails - rails 迁移生成随机表。这是从哪里来的?

java - 为 Java 应用程序运行数据库迁移

css - 将提交和取消按钮与 Bootstrap 对齐

ruby-on-rails - RubyMine - 关闭在 "empty"行中间单击的能力

ruby-on-rails - Rails 管理面板加载缓慢

git - .git/config 和 .gitmodules 不同步

git - 当分支分支 merge 时会发生什么

android - Github - 在 android 应用程序中重命名包后提交错误 : LibGit2Sharp. LockedFileException:索引已锁定

database-migration - 使用空数据库和预先存在的数据库进行 Liquibase 数据库迁移