2009-08-30 14 views
1

MediaTempleのグリッドサーバーにアプリをインストールする際に問題が発生しています...私はcapとgithubを使って展開しています...すべてがうまくいくようですが、アプリケーションは起動しません。私のdatabase.ymlファイルに問題があるようですか?私はスペースエラーをチェックしました。私が試してみて、そこから起動したときにここでRails AppをMediaTempleにインストールする際に問題がありますか?

は、コンソールのコピーである:ここで

[email protected]:/home/65633/containers/rails/GDB/current$ script/server RAILS_ENV="production" --trace 
** Ruby version is not up-to-date; loading cgi_multipart_eof_fix 
=> Booting Mongrel (use 'script/server webrick' to force WEBrick) 
server: invalid option: --trace 
=> Rails 2.2.2 application starting on http://0.0.0.0:3000 
=> Call with -d to detach 
=> Ctrl-C to shutdown server 
** Starting Mongrel listening at 0.0.0.0:3000 
** Starting Rails with development environment... 
config.gem: Unpacked gem geokit-1.4.1 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this. 
Exiting 
/home/65633/data/rubygems/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:60:in `establish_connection': development database is not configured (ActiveRecord::AdapterNotSpecified) 
    from /home/65633/data/rubygems/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:53:in `establish_connection' 
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/initializer.rb:392:in `initialize_database' 
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/initializer.rb:139:in `process' 
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/initializer.rb:112:in `send' 
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/initializer.rb:112:in `run' 
    from /nfs/c04/h03/mnt/65633/containers/rails/GDB/releases/20090830045026/config/environment.rb:15 
    from /home/65633/data/rubygems/lib/rubygems/custom_require.rb:31:in `gem_original_require' 
    from /home/65633/data/rubygems/lib/rubygems/custom_require.rb:31:in `require' 
    ... 24 levels... 
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/commands/server.rb:49 
    from /home/65633/data/rubygems/lib/rubygems/custom_require.rb:31:in `gem_original_require' 
    from /home/65633/data/rubygems/lib/rubygems/custom_require.rb:31:in `require' 
    from script/server:3 

は雑種のログです:

** Daemonized, any open files are closed. Look at log/mongrel.pid and log/mongrel.log for info. 
** Starting Mongrel listening at 0.0.0.0:2017 
** Starting Rails with production environment... 
/home/65633/data/rubygems/lib/rubygems/custom_require.rb:31:in `gem_original_require': /home/65633/containers/rails/GDB/releases/20090830060044/app/controllers/administration_controller.rb:159: syntax error, unexpected kEND, expecting $end (SyntaxError) 
    from /home/65633/data/rubygems/lib/rubygems/custom_require.rb:31:in `require' 
    from /home/65633/data/rubygems/gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:155:in `require' 
    from /home/65633/data/rubygems/gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:262:in `require_or_load' 
    from /home/65633/data/rubygems/gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:221:in `depend_on' 
    from /home/65633/data/rubygems/gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:133:in `require_dependency' 
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/initializer.rb:368:in `load_application_classes' 
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/initializer.rb:367:in `each' 
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/initializer.rb:367:in `load_application_classes' 
    ... 17 levels... 
    from /home/65633/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../lib/mongrel/command.rb:212:in `run' 
    from /home/65633/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/mongrel_rails:281 
    from /home/65633/data/rubygems/gems/bin/mongrel_rails:19:in `load' 
    from /home/65633/data/rubygems/gems/bin/mongrel_rails:19 

MTR開始エラー

application started, but pid file was not found, check 'mtr status' 

答えて

0

コマンドscript/server RAILS_ENV="production"は明らかにMongrelを開発環境と一緒に起動しません。あなたの最初の抜粋からg線:

さらに
** Starting Rails with development environment... 

あなたがRAILS_ENV=production script/serverを実行しようとした場合、アプリケーションがどの宝石関連のエラーなしで起動しますか?それが私がチェックするものです。

2番目のログファイルのエラーについては、わかりません。 administration_controller.rbの159行目には何がありますか?

関連する問題