2012-03-21 11 views
1

raroonnectで別のアプリケーションとしてrhoconnectを実行しようとしていますが(これは実際に可能ですか?)、レールバックエンドアプリケーション(addonではなく、バックエンドレールアプリケーション)。これは、私のrhodes androidアプリケーションとレールのバックエンドとの同期を可能にするためです。heroku上でインスタンスとしてrhoconnectを実行して設定しています

私はRedisのサーバーでローカルにrhoconnectを開始することができていますが、私はHerokuの上rhoconnectアプリにredistogoアドオンを追加localhostの

で開始しました。 私が持っている問題は、herokuにrhoconnectをデプロイすると、アプリケーションがredisサーバー(redistogo)に接続できないということです。

#Sources 
:sources: 
    Interest: 
    :poll_interval: 300 

:development: 
    :licensefile: settings/license.key 
    :redis: 127.0.0.1:6379 
    :syncserver: http://localhost:9292/api/application/ 
:test: 
    :licensefile: settings/license.key 
    :redis: 127.0.0.1:6379 
    :syncserver: localhost:9292/api/application/ 
:production: 
    :licensefile: settings/license.key 
    :redis: redis://redistogo:[email protected]:9393 
    :syncserver: http://localhost:9292/api/application/</code> 

Once I deploy to heroku, I am unable to access the rhoconnect app from browser. heroku logs --app myapp

私は、アプリケーションのクラッシュを参照してください:私はsettings.ymlの中rhoconnect設定するには、次の設定を使用

2012-03-21T23:01:25+00:00 heroku[web.1]: Starting process with command `thin -p 26946 -e production -R /home/heroku_rack/heroku.ru start` 2012-03-21T23:01:27+00:00 app[web.1]: [04:01:27 PM 2012-03-21] Rhoconnect Server v3.1.1 started... 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r esque-1.19.0/lib/resque/server.rb:12:in `<class:Server>' 2012-03-21T23:01:27+00:00 app[web.1]: :public is no longer used to avoid overloa ding Module#public, use :public_folder instead 2012-03-21T23:01:27+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/redis-2. 2.2/lib/redis/connection/ruby.rb:26:in `initialize': getaddrinfo: Name or servic e not known (SocketError) 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r edis-2.2.2/lib/redis/connection/ruby.rb:26:in `new' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r edis-2.2.2/lib/redis/connection/ruby.rb:26:in `block in connect' 2012-03-21T23:01:27+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/1.9.1/timeo ut.rb:57:in `timeout' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r edis-2.2.2/lib/redis/connection/ruby.rb:128:in `with_timeout' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r edis-2.2.2/lib/redis/connection/ruby.rb:25:in `connect' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r edis-2.2.2/lib/redis/client.rb:227:in `establish_connection' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r edis-2.2.2/lib/redis/client.rb:23:in `connect' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r edis-2.2.2/lib/redis/client.rb:247:in `ensure_connected' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r edis-2.2.2/lib/redis/client.rb:137:in `block in process' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r edis-2.2.2/lib/redis/client.rb:136:in `process' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r edis-2.2.2/lib/redis/client.rb:206:in `logging' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r edis-2.2.2/lib/redis/client.rb:46:in `call' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r edis-2.2.2/lib/redis.rb:157:in `block in get' 2012-03-21T23:01:27+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/1.9.1/monit or.rb:201:in `mon_synchronize' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r edis-2.2.2/lib/redis.rb:156:in `get' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r hoconnect-3.1.1/lib/rhoconnect/model.rb:51:in `is_exist?' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r hoconnect-3.1.1/lib/rhoconnect.rb:94:in `start_app' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r hoconnect-3.1.1/lib/rhoconnect.rb:85:in `bootstrap' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r hoconnect-3.1.1/lib/rhoconnect.rb:308:in `initializer' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/application.rb:24:in `initiali zer' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/application.rb:41:in `<top (re quired)>' 2012-03-21T23:01:27+00:00 app[web.1]: from config.ru:37:in `require' 2012-03-21T23:01:27+00:00 app[web.1]: from config.ru:37:in `block (3 levels) i n <main>' 2012-03-21T23:01:27+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:23:in ` eval' 2012-03-21T23:01:27+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:23:in ` block (3 levels) in <main>' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r ack-1.3.6/lib/rack/builder.rb:51:in `instance_eval' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r ack-1.3.6/lib/rack/builder.rb:51:in `initialize' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r ack-1.3.6/lib/rack/builder.rb:120:in `new' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r ack-1.3.6/lib/rack/builder.rb:120:in `map' 2012-03-21T23:01:27+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:18:in ` block (2 levels) in <main>' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r ack-1.3.6/lib/rack/builder.rb:51:in `instance_eval' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r ack-1.3.6/lib/rack/builder.rb:51:in `initialize' 2012-03-21T23:01:27+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:11:in ` new' 2012-03-21T23:01:27+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:11:in ` block in <main>' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r ack-1.3.6/lib/rack/builder.rb:51:in `instance_eval' 2012-03-21T23:01:27+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/r ack-1.3.6/lib/rack/builder.rb:51:in `initialize' 2012-03-21T23:01:27+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:1:in `n ew' 2012-03-21T23:01:27+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/ gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `eval' 2012-03-21T23:01:27+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/ gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `load' 2012-03-21T23:01:27+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:1:in `< main>' 2012-03-21T23:01:27+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/ gems/thin-1.2.6/lib/thin/controllers/controller.rb:175:in `load_rackup_config' 2012-03-21T23:01:27+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/ gems/thin-1.2.6/lib/thin/controllers/controller.rb:65:in `start' 2012-03-21T23:01:27+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/ gems/thin-1.2.6/lib/thin/runner.rb:177:in `run_command' 2012-03-21T23:01:27+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/ gems/thin-1.2.6/lib/thin/runner.rb:143:in `run!' 2012-03-21T23:01:27+00:00 app[web.1]: from /usr/ruby1.9.2/bin/thin:19:in `<mai n>' 2012-03-21T23:01:27+00:00 app[web.1]: from /usr/ruby1.9.2/bin/thin:19:in `load ' 2012-03-21T23:01:27+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/ gems/thin-1.2.6/bin/thin:6:in `<top (required)>' 2012-03-21T23:01:28+00:00 heroku[web.1]: Process exited with status 1 2012-03-21T23:01:28+00:00 heroku[web.1]: State changed from starting to crashed 

は、誰もが同様のセットアップをテストしましたが、変更する方法を知っていますsettings.ymlのredisインスタンスURL?私はかなりのオプションを試しました。

答えて

0

rhoconnectのホスティングに間違ったオプションを選択したとします。結論は、herokuのスタックは、rhoconnectアプリケーションが必要とするものと一致していないということです。

amazon EC2のマイクロインスタンスにアプリケーションを移動し、そこで実行しています。バックエンドのアプリは依然として英雄になっていますが、最初は無料で機能をテストしたいと考えていました。

マイクロインスタンスにrvm、ruby、rhoconnect、およびredisをインストールし、git repoをプルしてデプロイしました。しかし、すべてのアプリを1つのクラウドの下に置くことは素晴らしいことです。

関連する問題