问题标签 [rubber]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
112 浏览

ruby-on-rails - 无法使用 Rubber 部署到 AWS EC2

我正在关注这个 Railscast,但是当我运行时

我明白了

我也在SO 上找到了这个线程,但同样没有成功。

安装的橡胶版本是2.2.4,ruby ruby​​ 1.9.3p385,rails Rails 3.2.12

我花了整个下午来解决这个问题,但我卡在这里。我会感激每一个建议,

谢谢!

0 投票
0 回答
246 浏览

ruby-on-rails - 如何从不同的分支部署多个应用服务器

我有一个使用 nginx/unicorn 在 2 个应用程序/Web 服务器上运行的 RoR 应用程序。该站点是使用我们 repo 的“master”分支中的Rubber部署的。生活很好!

我们正在与之合作的一些新客户要求将他们的数据和文件保存在不同的服务器上。我们计划为这些客户中的每一个提供单独的盒子。这些客户的站点将在 customerX.site.com 上可用,并且这些应用程序的代码将与“master”分支中的代码相同,除了几个图像和 database.yml 文件。

所以我的问题是,有没有办法设置 git 分支,该分支应该用于根据框的角色提取代码,或者有任何替代方法来轻松管理这个多应用程序部署过程?

0 投票
1 回答
1460 浏览

ruby-on-rails-3 - Haproxy + Nginx + Unicorn - Not serving static assets with SSL

I was trying to make my Rails website serve all the web-pages and assets with both, http or https, but what happens is that when I enter in https mode it is being redirected to http and the assets are never served with as https protocol.

My nginx configuration is the following one:

It would be better if I could serve the static assets with nginx in https or http, but if it is not possible, I can serve them with Rails and pay the performance penalty, since this will only be used in the bookmarklet that we are creating.

Do you know how to make this nginx config works with ssl serving the assets?

If you need I can add the unicorn and haproxy configuration too.

Thank you!

0 投票
1 回答
205 浏览

ruby-on-rails-3 - 您如何使用导轨和橡胶宝石在生产中设置池大小?

我正在使用 rails 3.2 和 postgres 9.1。我在 Amazon EC2 实例上托管,并使用 capistrano 和 Rubber 进行部署。

所以我的问题是,由于我没有在 database.yml 中为生产设置数据库选项,如何从默认的 5 增加池大小?

我的猜测是在 config/rubber/rubber-postgresql.yml 中,但我不知道实际放入什么来更改池大小。

0 投票
1 回答
493 浏览

ruby-on-rails-3 - 30 秒后 Amazon EC2 超时

我使用 Rubber 在 Amazon EC2 上部署了一个 RoR3 应用程序。

我有一个缓慢的请求,大约需要 1 分钟,但它在 30 秒后因错误而死:

有谁知道如何增加超时时间?

0 投票
2 回答
516 浏览

ruby-on-rails - Rails Rubber EC2 亚马逊 AWS Railscast

嗨,我已使用此 railscast 成功将我的应用程序部署到亚马逊 aws

http://railscasts.com/episodes/347-rubber-and-amazon-ec2

我的应用程序仅在我的本地计算机上显示在此 url http://web01.foo.com/上。

我有点困惑,如果我部署了它,为什么其他人看不到它。你如何让它让所有人都能看到?

如果有人熟悉这个 Rails 演员请赐教,我仍在尝试了解亚马逊 AWS 托管的架构。

谢谢朱迪

0 投票
1 回答
263 浏览

ruby-on-rails - Capistrano Rubber Phusion 乘客企业配置

我在编辑 Capistrano Rubber 配方以包含 Phusion 乘客企业版而不是开源模块时遇到了一点麻烦。

问题始于不能从任何存储库下载企业版乘客这一事实。因此,我手动下载了 gem 并将其存储在本地计算机上的 .tar.gz 文件中。不过,我确实注意到的一件事是,库存的 Capistrano 橡胶配方希望在存储库中找到宝石,而不是在本地文件中。因此,我假设我需要编辑以下配置文件,尽管我不太确定如何。

编辑#1:config/rubber/rubber-passenger_nginx.yml

我也觉得我应该编辑安装例程,以便指定手动下载的 gem 的位置并将 nginx 安装过程指向它。

如果有人能提供任何建议,我将不胜感激。

谢谢

0 投票
3 回答
740 浏览

ruby-on-rails-3 - 使用橡胶宝石`response_call'将rails应用程序部署到ec2时出错:预期(200)<=>实际(400错误请求)(Excon :: Errors :: BadRequest)

当我做 cap Rubber:create_staging 时,当 Rubber 尝试创建 ec2 实例时出现以下错误。我是否缺少任何配置设置?

** Creating instance ami-eafa5883/t1.micro/elearn_production_default,elearn_production_web,elearn_production_web_tools,elearn_production_production,elearn_production_apache,elearn_production_app,elearn_production_passenger,elearn_production_collectd,elearn_production_common,elearn_production_monit,elearn_production_db,elearn_production_mysql,elearn_production_mysql_master,elearn_production_elasticsearch,elearn_production_examples,elearn_production_graphite_server,elearn_production_graphite_web,elearn_production_graylog_elasticsearch,elearn_production_graylog_mongodb, elearn_production_mongodb、elearn_production_graylog_server、elearn_production_graylog_web、elearn_production_haproxy/us-east-1b

/Users/svisamsetty/.rvm/gems/ruby-1.9.3-p429/gems/excon-0.22.1/lib/excon/middlewares/expects.rb:10:in response_call': Expected(200) <=> Actual(400 Bad Request) (Excon::Errors::BadRequest) from /Users/svisamsetty/.rvm/gems/ruby-1.9.3-p429/gems/excon-0.22.1/lib/excon/connection.rb:355:inresponse'

0 投票
1 回答
95 浏览

wpf - WPF:橡胶多路径控件界面

我有一个卡片组件(见下文)。这个组件里面有一些路径和Canvas。但它们没有橡胶(当您将其放入 Silverlight 页面时)。

如果可能的话怎么做橡胶?

您可以在这里找到心之女王的样本:https ://docs.google.com/file/d/0B8AVeqop_fkjOFpGZUFvbTE3ejQ/edit?usp=sharing

0 投票
2 回答
203 浏览

ruby-on-rails - 找不到组(Fog::Compute::AWS::NotFound)

带有橡胶部署错误的 Amazon ec2。当我运行 create staging 时,出现以下错误。

/usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/middlewares/expects.rb:10:in response_call': Unable to find group 'Matchimi_Enterprise_production_default' (Fog::Compute::AWS::NotFound) from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/connection.rb:353:inresponse' from /usr/local/rvm/gems/ ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/connection.rb:247:in request' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/middlewares/idempotent.rb:12:inerror_call' 来自 /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon -0.23.0/lib/excon/middlewares/base.rb:10:in error_call' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/connection.rb:260:inrescue in request' 来自 /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/ excon/connection.rb:220:in request' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/middlewares/idempotent.rb:12:inerror_call' 来自 /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/middlewares/base.rb:10:inerror_call' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/connection.rb:260:in来自 /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/connection.rb:220:in request' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/middlewares/idempotent.rb:12:inerror_call' 的救援请求'来自 /usr/local/rvm /gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/middlewares/base.rb:10:inerror_call' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/connection.rb:260:in来自 /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/connection.rb:220:in request' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/fog-1.12.1/lib/fog/core/connection.rb:25:inrequest' 的救援请求'来自 /usr/local/rvm /gems/ruby-1.9.3-p392/gems/fog-1.12.1/lib/fog/aws/compute.rb:385:in _request' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/fog-1.12.1/lib/fog/aws/compute.rb:380:inrequest' 来自 /usr/local/rvm/gems/ruby-1.9.3- p392/gems/fog-1.12.1/lib/fog/aws/requests/compute/authorize_security_group_ingress.rb:54:in authorize_security_group_ingress' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/fog-1.12.1/lib/fog/aws/models/compute/security_group.rb:104:inauthorize_port_range' 来自 /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber -2.5.2/lib/rubber/cloud/aws.rb:368:in add_security_group_rule' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/cloud/aws.rb:500:inblock (2 levels) in sync_security_groups' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5. 2/lib/rubber/cloud/aws.rb:496:in each' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/cloud/aws.rb:496:inblock in sync_security_groups' 来自 /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/cloud /aws.rb:490:ineach' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/cloud/aws.rb:490:insync_security_groups' 来自 /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/cloud/aws.rb:254:in setup_security_groups' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/cloud/aws.rb:72:inbefore_create_instance' 来自 /usr/local/rvm /gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/thread_safe_proxy.rb:13:in method_missing' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/recipes/rubber/instances.rb:267:inblock in create_instance' 来自 /usr/local/rvm/rubies/ruby-1.9.3- p392/lib/ruby/1.9.1/monitor.rb:211:in mon_synchronize' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/recipes/rubber/instances.rb:266:increate_instance' 来自 /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/recipes /rubber/instances.rb:230:in `block (2 levels) in create_instances'