Tag: engineyard

如何告知引擎码不删除.gitignore中的文件

为了给你一些上下文,我试图使用Figaro安全地添加环境变量,而不必担心安全风险。 问题是我似乎无法让Engine Yard在生产中发挥出色。 我去做了一个touch application.yml然后vim application.yml , 我 ,然后命令 + v插入api键,什么不是。 我知道ENV[‘VARIABLES’]工作是因为开发和所有我的rspec和黄瓜测试(利用API)都通过了。 当我准备好一切时,我在.gitignore添加: # Ignore application configuration /config/application.yml 之后,我部署了该网站。 我打开它,数据不再用于API了。 好… cd进入config并发现application.yml不再存在了。 将其粘贴回…重新部署网站,因为它现在知道它必须忽略该文件,我没有看到生产的变化。 检查一下……它再次消失! 难以理解正在发生的事情。

Ubuntu虚拟环境上的自动测试通知

我无法让Rails自动测试通知在Engine Yard Vagrant环境中工作。 在Mac上,我通常通过Growl收到通知。 但是,在运行Ubuntu的虚拟环境中不起作用。 我尝试运行Linux通知设置,如libnotify + autotest-notification,但是我收到以下错误: libnotify-Message: Unable to get session bus: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed. ** (notify-send:1004): CRITICAL **: dbus_g_proxy_connect_signal: assertion `DBUS_IS_G_PROXY (proxy)’ failed ** (notify-send:1004): CRITICAL **: dbus_g_proxy_connect_signal: assertion `DBUS_IS_G_PROXY (proxy)’ failed ** (notify-send:1004): CRITICAL **: dbus_g_proxy_call: assertion `DBUS_IS_G_PROXY (proxy)’ failed 另一条路径是让Growl远程接收通知,但我甚至不知道从哪里开始…… 有什么建议?

用户友好的错误页面未在生产环境中显示

最近我的用户友好错误页面停止显示我的生产环境。 我正在使用rails 3.0.3。 我在config/environments/production.rb有以下内容: config.action_controller.consider_all_requests_local = false 当我使用生产环境在本地启动Web服务器时,用户友好的错误页面会正确显示。 还有其他人经历过这个吗?

Solr with Rails – rake sunspot:reindex无效

希望每个人都很好,做得好! 我陷入一个奇怪的问题,我正在寻找你的输入。 我的问题是: 在使用Capistrano在Production上部署我的应用程序后,当我进行solr重新索引时,它给出了以下错误: $ bundle exec rake sunspot:reindex –trace ** Invoke sunspot:reindex (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute sunspot:reindex Skipping progress bar: for progress reporting, add gem ‘progress_bar’ to your Gemfile rake aborted! RSolr::Error::Http – 404 Not Found Error: Not Found Request Data: “query>type:OccupationData” Backtrace: /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rsolr-1.0.9/lib/rsolr/client.rb:268:in `adapt_response’ /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rsolr-1.0.9/lib/rsolr/client.rb:175:in `execute’ /data/APP_NAME/shared/bundled_gems/ruby/1.9.1/gems/rsolr-1.0.9/lib/rsolr/client.rb:161:in […]

使用Engine Yard部署Gollum wiki

Gollum是“一个简单的,Git驱动的wiki,带有甜蜜的API和本地前端。” 它托管在GitHub上: http : //github.com/github/gollum 将我的站点部署到EngineYard会产生此错误。 从https://rubygems.org/获取gem元数据安装charlock_holmes(0.6.9.4)Gem :: Installer :: ExtensionBuildError:错误:无法构建gem原生扩展。 安装名为“ICU”的依赖项似乎是一个问题。 我已经使用EngineYard仪表板上的’install unix package’按钮安装了ICU,但似乎无法解决这个问题。