From: Frederick Cheung Date: 2007-12-28T02:22:58+09:00 Subject: Re: Port Ruby on Rails Application On 27 Dec 2007, at 17:18, Snoop1990 Snoop1990 wrote: > Snoop1990 Snoop1990 wrote: >> Sorry I do not get this! >> >> I just setup a new rails application and started it at port 40000 >> and it >> works ... why ? ... neither I nor my friend changed anything ! >> py/vendor/rails/activesupport/lib/active_support/dependencies.rb: >> 495:in > `require' > from /home/Share/www/snoop/backup/blog > copy/vendor/rails/railties/lib/commands/server.rb:39 > from ./script/server:3:in `require' > from ./script/server:3 > This app has gems frozen in vendor > Instead of : > > $ ./script/server > => Booting WEBrick... > => Rails application started on http://127.0.0.1:3000 > => Ctrl-C to shutdown server; call with --help for options > [2007-12-27 18:13:09] INFO WEBrick 1.3.1 > [2007-12-27 18:13:09] INFO ruby 1.8.6 (2007-06-07) [i486-linux] > [2007-12-27 18:13:09] INFO WEBrick::HTTPServer#start: pid=23598 > port=3000 > > when I try to run two webrick servers at the same port on the same > system. I just mixed up to shutdown one and started another, which > causes an error. As described above. But what about the FreeBSD > application ? > > When I try to start it I still get the following error : > > $ ./script/server -p 40001 > ./script/../config/boot.rb:18:in `require': no such file to load -- > rubygems (LoadError) > from ./script/../config/boot.rb:18 > from ./script/server:2:in `require' > from ./script/server:2 > This one probably doesn't. Do you have rubygems installed ? Fred > -- > Posted via http://www.ruby-forum.com/. >