将 Rails 应用程序打包为 gem 或其他可重用的东西?
我正在寻找有关如何将 Rails 应用程序打包为 gem 或类似可重用的东西的指南。
在工作中,我们构建了很多客户端 Rails 应用程序,其中 WordPress 太博客(和 php)和 radient 以及其他 ruby cms看起来有点笨重以完美地适应它们..
所以我使用我在多个站点中看到的共同因素为简单的站点构建(你猜对了)另一个CMS..
完美的是,能够说
$: MyCMSName new sitename
要设置共同点默认值,然后:
$: rails g MyCMSName:downloads
或者
$: rails g MyCMSName:galleries
也可以这样说:
$: MyCMSName new sitename --with-galleries --with-downloads
I'm looking for a guide on how to package a rails app as a gem or something reusable like that..
At work we build a lot of client rails apps where wordpress is too bloggy(and php) and radient and the other ruby cms's seem a little clunky to fit them perfectly..
So im building (you guessed it) yet another CMS for simple sites using the common factors ive seen across multiple sites..
What would be perfect would be, being able to say
$: MyCMSName new sitename
To setup the common defaults, and then:
$: rails g MyCMSName:downloads
Or
$: rails g MyCMSName:galleries
Also it would also be nice to say:
$: MyCMSName new sitename --with-galleries --with-downloads
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这就是 RefineryCMS 的工作方式。
我建议您下载源代码并帮助开发,而不是浪费时间创建另一个 CMS。
还有一些 Rails 引擎扩展可用,包括画廊。主要开发人员对拉取请求持开放态度,并且经常可以在 irc 上找到。
This is the way RefineryCMS works.
Rather than wasting your time creating yet another CMS, I suggest you download the source and help in development.
There are a few rails engine extensions available too, including a gallery. The main developer is open to pull requests and can often be found on irc.