Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在研究将在何种语言上构建 Web 应用程序并将其出售给公司。为了让事情变得更简单,我希望将 webapp 打包到一个方便的安装程序中,其中包含将自动运行的整个堆栈。
有没有办法创建一个自包含的 RoR 包?
我知道的唯一项目叫做pkgr,它将整个 rails 应用程序捆绑到一个 DEB 包中。因此,如果您不介意将安装限制在 Ubuntu/Debian,您可以尝试一下。
您可以编写一个 rake 任务来为您自动化一切。迁移、捆绑、环境设置。它也是非常简单的 Ruby。
最后,它只是运行一个脚本文件来完成这项工作。