可以用 foreman 这个 gem 一次启动 rails s 和 webpack dev server。不过默认的 web 端口会变成 5000。
Postico +1,不过别直接在 App Store 里买,收费的。下个试用版其实够用了。
这个是执行 sudo make install 之后,下载的情况。
Docker 没有成功用那个 url 安装,连不上。最后用 docker 的文档装的。试了了 docker info。
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/rails-settings-cached-0.6.5/lib/rails-settings/default.rb:41:in `initialize'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/rails-settings-cached-0.6.5/lib/rails-settings/default.rb:34:in `new'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/rails-settings-cached-0.6.5/lib/rails-settings/default.rb:34:in `instance'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/rails-settings-cached-0.6.5/lib/rails-settings/default.rb:22:in `[]'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/rails-settings-cached-0.6.5/lib/rails-settings/settings.rb:76:in `[]'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/rails-settings-cached-0.6.5/lib/rails-settings/base.rb:35:in `[]'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/rails-settings-cached-0.6.5/lib/rails-settings/settings.rb:32:in `rescue in method_missing'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/rails-settings-cached-0.6.5/lib/rails-settings/settings.rb:22:in `method_missing'
/var/www/homeland/config/environments/production.rb:30:in `block in <top (required)>'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/railtie.rb:209:in `instance_eval'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/railtie.rb:209:in `configure'
/var/www/homeland/config/environments/production.rb:1:in `<top (required)>'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `block in require'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/engine.rb:600:in `block (2 levels) in <class:Engine>'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/engine.rb:599:in `each'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/engine.rb:599:in `block in <class:Engine>'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:30:in `instance_exec'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:30:in `run'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:44:in `each'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:44:in `tsort_each_child'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:54:in `run_initializers'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/application.rb:352:in `initialize!'
/var/www/homeland/config/environment.rb:5:in `<top (required)>'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `block in require'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/application.rb:328:in `require_environment!'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/application.rb:448:in `block in run_tasks_blocks'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/commands/rake_proxy.rb:14:in `block in run_rake_task'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/commands/rake_proxy.rb:11:in `run_rake_task'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:51:in `run_command!'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/commands.rb:18:in `<top (required)>'
/var/www/homeland/bin/rails:9:in `require'
/var/www/homeland/bin/rails:9:in `<top (required)>'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `load'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `call'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/spring-2.0.1/lib/spring/client/command.rb:7:in `call'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/spring-2.0.1/lib/spring/client.rb:30:in `run'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/spring-2.0.1/bin/spring:49:in `<top (required)>'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `load'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `<top (required)>'
/var/www/homeland/bin/spring:13:in `require'
/var/www/homeland/bin/spring:13:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
NoMethodError: undefined method `asset_host' for Setting (call 'Setting.connection' to establish a connection):Class
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activerecord-5.0.1/lib/active_record/dynamic_matchers.rb:21:in `method_missing'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/rails-settings-cached-0.6.5/lib/rails-settings/settings.rb:23:in `method_missing'
/var/www/homeland/config/environments/production.rb:30:in `block in <top (required)>'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/railtie.rb:209:in `instance_eval'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/railtie.rb:209:in `configure'
/var/www/homeland/config/environments/production.rb:1:in `<top (required)>'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `block in require'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/engine.rb:600:in `block (2 levels) in <class:Engine>'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/engine.rb:599:in `each'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/engine.rb:599:in `block in <class:Engine>'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:30:in `instance_exec'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:30:in `run'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:44:in `each'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:44:in `tsort_each_child'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:54:in `run_initializers'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/application.rb:352:in `initialize!'
/var/www/homeland/config/environment.rb:5:in `<top (required)>'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `block in require'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/application.rb:328:in `require_environment!'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/application.rb:448:in `block in run_tasks_blocks'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/commands/rake_proxy.rb:14:in `block in run_rake_task'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/commands/rake_proxy.rb:11:in `run_rake_task'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:51:in `run_command!'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/railties-5.0.1/lib/rails/commands.rb:18:in `<top (required)>'
/var/www/homeland/bin/rails:9:in `require'
/var/www/homeland/bin/rails:9:in `<top (required)>'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `load'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `call'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/spring-2.0.1/lib/spring/client/command.rb:7:in `call'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/spring-2.0.1/lib/spring/client.rb:30:in `run'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/spring-2.0.1/bin/spring:49:in `<top (required)>'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `load'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `<top (required)>'
/var/www/homeland/bin/spring:13:in `require'
/var/www/homeland/bin/spring:13:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => db:migrate => environment
先更新下,似乎服务器端有问题。等联调结果吧。 另外,这个报错应该是服务器端的报错。
再次补充。message 这个参数,改成 xml 之后。response = client.call(:do_request, xml: msg),倒是没有 -- 不允许处理指令目标匹配“[xX][mM][lL]”的错误了。但有了下面的错误:(soapenv:Server.userException) org.xml.sax.SAXException: Bad envelope tag: Records。注 Records 是构建的 xml 最外层的标签。
http://savonrb.com/version2/locals.html 补充下,这个链接里有复杂 xml 的构造法,但试了似乎也没有效果,不知道是不是不得法啊。
heihei
You may check this blog from xdite. Just Great & Straightforward!
@tumayun ;)那请见谅吧
@tumayun 真心赞扬,在遇到过当 EN 是空白的程序员 N 个之后。这是责任感的体现!
@linjunhalida 创业公司,主要的方向是帮助企业或者组织实现网站社交化。服务提供者,暂时没能力抽象产品。 @tumayun 会用 google 翻译的话,您已经是 20% 的少数了……请保持住;)
@lgn21st,收到,我会通知同事修改。官网原先有,是电商化的内容,但是现在公司开始向社交化改造的方向前进,就暂时关闭了这个。 @SharpX,咨询公司,从事传统网站的网络社交化改造、研究。 @diudiutang,是的,不低于 9K,年底会考核后给予 13 薪。想找个有真本事的好程序员,不想亏待他。