我正在寻求帮助,而且我非常感激。
如果您想知道OCN来自哪里:Firebase Test Lab
ruby --version: 2.1.5
bundler --version: 1.6.1
您好,我正在尝试在rails c
中执行此命令,但我收到以下消息:
buxar@buxar-VirtualBox:~/OCN2/OCN$ rails c
^[[A^[[ALoading development environment (Rails 4.2.4)
Ignoring eventmachine-1.0.4 because its extensions are not built. Try: gem pristine eventmachine --version 1.0.4
irb(main):001:0>
irb(main):002:0* Repository[:data].load_models
/home/buxar/OCN2/OCN/app/workers/publisher.rb:4: warning: constant Publisher::TimeoutError is deprecated
Errno::ENOENT: No such file or directory @ dir_chdir - /minecraft/repo/data/models
from /home/buxar/OCN2/OCN/app/models/buildable/store.rb:17:in `chdir'
from /home/buxar/OCN2/OCN/app/models/buildable/store.rb:17:in `glob'
from /home/buxar/OCN2/OCN/app/models/buildable/transfer.rb:34:in `paths'
from /home/buxar/OCN2/OCN/app/models/buildable/import.rb:99:in `load'
from /home/buxar/OCN2/OCN/app/models/buildable.rb:99:in `block in load_models'
from /home/buxar/OCN2/OCN/app/models/buildable.rb:98:in `each'
from /home/buxar/OCN2/OCN/app/models/buildable.rb:98:in `load_models'
from /home/buxar/OCN2/OCN/app/models/repository/data.rb:26:in `load_models'
from (irb):2
from /var/lib/gems/2.3.0/gems/railties-4.2.4/lib/rails/commands/console.rb:110:in `start'
from /var/lib/gems/2.3.0/gems/railties-4.2.4/lib/rails/commands/console.rb:9:in `start'
from /var/lib/gems/2.3.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:68:in `console'
from /var/lib/gems/2.3.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /var/lib/gems/2.3.0/gems/railties-4.2.4/lib/rails/commands.rb:17:in `<top (required)>'
from script/rails:37:in `require'
from script/rails:37:in `<main>'
irb(main):003:0>
答案 0 :(得分:0)
如果有人在今年(2020年)遇到同样的问题,我会提供解决方案。
步骤:
BASE_PATH = '/minecraft/repo'
替换为BASE_PATH = 'your_directory_stored/minecraft/repo'
BASE_PATH = '/home/minecraft/repo'
并粘贴rails c
,即返回 Repository[:data].load_models
如果在极少数情况下不起作用,请创建一个符号链接,然后执行上述步骤。