Unable to start rails server with -d switch -
i trying start rails server daemon using -d
switch. have installed thin server , working on ubuntu. if started normal process, works, when using -d
switch, complains of server pid file /tmp/pids/server.pid
even if delete file , try start server -d
switch, won't start. please help.
the error says:
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in `block in setup': have activated daemons 1.1.9, gemfile requires daemons 1.1.8. using bundle exec may solve this. (gem::loaderror) /usr/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in `setup' /usr/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup' /usr/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in `<top (required)>' /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:110:in `require' /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:110:in `rescue in require' /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:35:in `require' /home/ubuntu/deploys/releases/20131001113746/config/boot.rb:6:in `<top (required)>' /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require' /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require' /home/ubuntu/deploys/releases/20131001113746/config/application.rb:1:in `<top (required)>' /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require' /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require' /home/ubuntu/deploys/releases/20131001113746/config/environment.rb:2:in `<top (required)>' /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require' /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require' /home/ubuntu/deploys/releases/20131001113746/config.ru:3:in `block in <main>' /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval' /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize' /home/ubuntu/deploys/releases/20131001113746/config.ru:1:in `new' /home/ubuntu/deploys/releases/20131001113746/config.ru:1:in `<main>' /usr/lib/ruby/gems/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `eval' /usr/lib/ruby/gems/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `load' /usr/lib/ruby/gems/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:42:in `for' /usr/lib/ruby/gems/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:169:in `load_adapter' /usr/lib/ruby/gems/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:73:in `start' /usr/lib/ruby/gems/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command' /usr/lib/ruby/gems/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!' /usr/lib/ruby/gems/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>' /usr/bin/thin:23:in `load' /usr/bin/thin:23:in `<main>'
run server using 'bundle exec' in start like:
bundle exec rails s -d
alternatively, exception trace stating mismatch activated daemons gem. fix this, set version of daemons gem greater (instead of equal to) 1.1.8 , try.
Comments
Post a Comment