小编Ela*_*dar的帖子

percise32 vagrant box上的Rails应用程序 - 资产获取"文本文件繁忙"错误(Errno :: ETXTBSY)

尝试在Vagrant框(percise32)主机内启动Rails应用程序是Windows 7.这是我的Vagrantfile

Vagrant.configure('2') do |config|
  config.vm.box      = 'precise32'
  config.vm.box_url  = 'http://files.vagrantup.com/precise32.box'
  config.vm.hostname = 'rails-dev-box'

  config.vm.synched_folder "c:\rails_text", "/home/code"

  config.vm.network :forwarded_port, guest: 3000, host: 3003

  config.vm.provision :puppet do |puppet|
    puppet.manifests_path = 'puppet/manifests'
    puppet.module_path    = 'puppet/modules'
  end
end
Run Code Online (Sandbox Code Playgroud)

当我尝试运行应用程序(代码正确同步)时,我在Rails服务器输出上收到以下错误:

Errno::ETXTBSY in Welcome#index

Showing /home/code/app/views/layouts/application.html.erb where line #4 raised:
Text file busy - (/home/code/tmp/cache/sass/a0a09a036cf07b1cae262d60fa989a8e24765858/welcome.css.scssc20131001-1595-f6clpt, /home/code/cache/sass/a0a09a036cf07b1cae262d60fa989a8e24765858/welcome.css.scssc)
  (in /home/code/app/assets/stylesheets/welcome.css.scss)
Run Code Online (Sandbox Code Playgroud)

有些文章建议将同步文件夹移到/ vagrant root之外是可以治愈的,但是因为我使用/ home/code似乎不是我的问题所在

想法欢迎.

ruby windows ruby-on-rails vagrant asset-pipeline

8
推荐指数
1
解决办法
5392
查看次数

标签 统计

asset-pipeline ×1

ruby ×1

ruby-on-rails ×1

vagrant ×1

windows ×1