使用Engine Yard部署Gollum Wiki [英] Deploy Gollum wiki with Engine Yard

查看:140
本文介绍了使用Engine Yard部署Gollum Wiki的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Gollum是一个简单的,由Git支持的Wiki,它具有出色的API和本地前端." 它托管在GitHub上: http://github.com/github/gollum

Gollum is "A simple, Git-powered wiki with a sweet API and local frontend." It's hosted on GitHub: http://github.com/github/gollum

将我的网站部署到EngineYard会生成此错误.

Deploying my site to EngineYard is generating this error.

https://rubygems.org/获取宝石元数据 安装charlock_holmes(0.6.9.4) Gem :: Installer :: ExtensionBuildError:错误:无法生成gem本机扩展.

Fetching gem metadata from https://rubygems.org/ Installing charlock_holmes (0.6.9.4) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

安装依赖项"ICU"似乎是一个问题. 我已经使用EngineYard仪表板上的安装unix软件包"按钮安装了ICU,但似乎无法解决此问题.

It seems to be an issue with installing an dependency called 'ICU'. I've installed ICU using the 'install unix package' button on the EngineYard dashboard but can't seem to fix this.

推荐答案

要使charlock_holmes gem正常工作,您需要使用bundle config传递多个标志.

To get the charlock_holmes gem working you need to pass a number of flags using bundle config.

在项目文件夹中的命令行中运行以下命令:

Run the following from the command line within the project folder:

$ bundle config --local build.charlock_holmes --with-ldflags='-L. -Wl,-O1 -Wl,--as-needed -rdynamic -Wl,-export-dynamic -Wl,--no-undefined -lz -licuuc'

将新创建的文件(/.bundle/config)提交到版本控制并重新部署.

Commit the newly created file (/.bundle/config) to version control and redeploy.

该解决方案主要基于我从Engine Yard支持人员那里获得的建议,该建议也从项目github问题中引用. https://github.com/brianmario/charlock_holmes/issues/32#issuecomment-17033186

This solution based largly on advice I received from Engine Yard support who also referenced from within the projects github issues. https://github.com/brianmario/charlock_holmes/issues/32#issuecomment-17033186

这篇关于使用Engine Yard部署Gollum Wiki的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆