• 好的,感谢!

  • 谢谢大佬的回复。我看了下,报如下错误: # Did you mean? each_pair>

    /var/www/homeland/app/controllers/settings_controller.rb:92:in `update_reward'
    /var/www/homeland/app/controllers/settings_controller.rb:30:in `update'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/abstract_controller/base.rb:194:in `process_action'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/rendering.rb:30:in `process_action'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0.rc1/lib/active_support/callbacks.rb:132:in `run_callbacks'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/abstract_controller/callbacks.rb:41:in `process_action'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/rescue.rb:22:in `process_action'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb:168:in `block in instrument'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0.rc1/lib/active_support/notifications.rb:168:in `instrument'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0.rc1/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/abstract_controller/base.rb:134:in `process'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionview-5.2.0.rc1/lib/action_view/rendering.rb:32:in `process'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal.rb:191:in `dispatch'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_controller/metal.rb:252:in `dispatch'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/routing/route_set.rb:34:in `serve'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/journey/router.rb:52:in `block in serve'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/journey/router.rb:35:in `each'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/journey/router.rb:35:in `serve'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/routing/route_set.rb:840:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/omniauth-1.7.1/lib/omniauth/strategy.rb:190:in `call!'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/omniauth-1.7.1/lib/omniauth/strategy.rb:168:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/http_accept_language-2.1.1/lib/http_accept_language/middleware.rb:14:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/rack-attack-5.0.1/lib/rack/attack.rb:147:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/exception_notification-4.2.2/lib/exception_notification/rack.rb:41:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/warden-1.2.7/lib/warden/manager.rb:36:in `block in call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/warden-1.2.7/lib/warden/manager.rb:35:in `catch'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/warden-1.2.7/lib/warden/manager.rb:35:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/rack-2.0.4/lib/rack/tempfile_reaper.rb:15:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/rack-2.0.4/lib/rack/etag.rb:25:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/rack-2.0.4/lib/rack/conditional_get.rb:38:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/rack-2.0.4/lib/rack/head.rb:12:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/rack-2.0.4/lib/rack/session/abstract/id.rb:232:in `context'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/rack-2.0.4/lib/rack/session/abstract/id.rb:226:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/middleware/cookies.rb:663:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0.rc1/lib/active_support/callbacks.rb:98:in `run_callbacks'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0.rc1/lib/rails/rack/logger.rb:38:in `call_app'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0.rc1/lib/rails/rack/logger.rb:26:in `block in call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0.rc1/lib/active_support/tagged_logging.rb:71:in `block in tagged'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0.rc1/lib/active_support/tagged_logging.rb:28:in `tagged'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0.rc1/lib/active_support/tagged_logging.rb:71:in `tagged'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0.rc1/lib/rails/rack/logger.rb:26:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/middleware/request_id.rb:27:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/rack-2.0.4/lib/rack/method_override.rb:22:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/rack-2.0.4/lib/rack/runtime.rb:22:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0.rc1/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/middleware/executor.rb:14:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/rack-2.0.4/lib/rack/sendfile.rb:111:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.0.rc1/lib/action_dispatch/middleware/ssl.rb:73:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/rack-cors-1.0.2/lib/rack/cors.rb:97:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/rack-utf8_sanitizer-1.3.2/lib/rack/utf8_sanitizer.rb:19:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0.rc1/lib/rails/engine.rb:524:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/puma-3.10.0/lib/puma/configuration.rb:225:in `call'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/puma-3.10.0/lib/puma/server.rb:605:in `handle_request'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/puma-3.10.0/lib/puma/server.rb:437:in `process_client'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/puma-3.10.0/lib/puma/server.rb:301:in `block in run'
    /var/www/homeland/vendor/bundle/ruby/2.5.0/gems/puma-3.10.0/lib/puma/thread_pool.rb:120:in `block in spawn_thread'
    
    

    我使用的版本:

    • Ruby: 2.5.0-p0
    • Rails: 5.2.0.rc1
    • Homeland: 3.0.11
  • 好的,谢谢!

  • homeland 性能怎么样? at 2018年04月22日

    已解决。我内存配置小的缘故。

  • homeland 性能怎么样? at 2018年04月19日

    could not translate host name "postgresql" to address: Name or service not known Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"utf-8", "database"=>"homeland", "username"=>"postgres", "password"=>"vagrant", "host"=>"postgresql", "port"=>5432, "pool"=>64} rails aborted!

    postgresql 需要另外搭建吗?还是使用 sudo make install 时就会创建 postgresql 实例并启动?

  • homeland 性能怎么样? at 2018年04月14日

    我搭建好了,但是使用连不上 postgresql,谁能帮忙看看吗?用的环境是 vagrant + ubuntu 16.04。执行 sudo make install 时,报如下错误:

  • homeland 性能怎么样? at 2018年04月14日

    @huacnlee https://gethomeland.com/install/ 这个文档是针对 14.04 的,我如果用 16.04 可以吗?还是这个脚本:curl -sSL https://git.io/install-docker | bash 吗?

  • homeland 性能怎么样? at 2018年04月12日

    好的,谢谢大佬。

  • 哈哈,已笑尿。。

  • +1,你们都是分母~