Ruby 在文件同步之前启动设置
我第一次和vagrant玩,我想把它加入到我们相当大的项目中。如果我在文件同步后运行我编写的引导shell文件,那么一切都很好。然而,在破坏虚拟机并第一次执行“漫游”操作后,我的Ubuntu 12.04 64位计算机一旦点击Ruby 在文件同步之前启动设置,ruby,linux,ubuntu,bundler,vagrant,Ruby,Linux,Ubuntu,Bundler,Vagrant,我第一次和vagrant玩,我想把它加入到我们相当大的项目中。如果我在文件同步后运行我编写的引导shell文件,那么一切都很好。然而,在破坏虚拟机并第一次执行“漫游”操作后,我的Ubuntu 12.04 64位计算机一旦点击bundle install Bundler::GemfileNotFound Stderr from the command: stdin: is not a tty dpkg-preconfigure: unable to re-open stdin: No suc
bundle install
Bundler::GemfileNotFound
Stderr from the command:
stdin: is not a tty
dpkg-preconfigure: unable to re-open stdin: No such file or directory
dpkg-preconfigure: unable to re-open stdin: No such file or directory
dpkg-preconfigure: unable to re-open stdin: No such file or directory
dpkg-preconfigure: unable to re-open stdin: No such file or directory
dpkg-preconfigure: unable to re-open stdin: No such file or directory
我假设这是因为它在我的Gemfile
/Gemfile.lock
完成同步之前到达了这个位置。情况可能不是这样,但似乎是这样。我该怎么解决这个问题
这是我的完整boostrap.sh脚本,它在v up上运行
#!/usr/bin/env bash
apt-get update
apt-get -y install git
# Required for nokogiri
apt-get -y install libxslt-dev libxml2-dev
# Required for eventmachine
apt-get -y install build-essential
# Required for typhoeus
apt-get -y install libcurl3-dev
apt-get -y install ruby1.9.3
gem install bundler
bundle install
我猜你是在用流浪者的外壳供应器运行脚本 你的gem文件在哪里?它很可能与主机上的
vagrant文件
位于同一文件夹中,因此请尝试添加:
cd /vagrant
在捆绑安装之前
,它应该可以工作