私は実験をすることにしました。私は1つのUbuntuシステム上に簡単なレールアプリを作成しました。私は、RVMを使用し、バンドラに一箇所にすべてを置くための方法を使用:Apacheで隔離されたRORアプリケーションをインストールする
$ bundle package
$ bundle install –local –path vendor
私は別のUbuntu純粋なシステムを行うプロジェクトディレクトリをコピーしたより。私はRVM、apache2、乗客などをインストールしましたが、私はプロジェクトディレクトリにそのような宝石があったのでレールをインストールしませんでした。 Apacheを設定すると、私はエラーだけを見ていない私のプロジェクトページを表示するようになっていたhttp://localhost/testを訪問した後
..
A source file that the application requires, is missing.
*
It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded.
*
A required library may not installed. Please install all libraries that this application requires.
Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.
Error message:
no such file to load -- bundler/setup
Exception class:
LoadError
Application root:
/home/anonym/Desktop/gemtest2/test_1_8_7
Backtrace:
# File Line Location
0 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
1 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `require'
2 /home/anonym/Desktop/gemtest2/test_1_8_7/config/boot.rb 6
3 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
4 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `require'
5 /home/anonym/Desktop/gemtest2/test_1_8_7/config/application.rb 1
6 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
7 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `require'
8 /home/anonym/Desktop/gemtest2/test_1_8_7/config/environment.rb 2
9 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
10 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `require'
11 config.ru 3
12 /usr/lib/ruby/1.8/rack/builder.rb 46 in `instance_eval'
13 /usr/lib/ruby/1.8/rack/builder.rb 46 in `initialize'
14 config.ru 1 in `new'
15 config.ru
が、これはシステム上のレールをインストールせずに固定することができますか?なぜ私はRORで実験しているのですか?)
バンドラーは、RVMをインストールするので、それはすでにそこにあります。 – gisek
本当ですか?私はRuby 1.9.3をインストールしました。バンドラは私のためにインストールされていませんでした(しかし、それはオプションです)。 –