3

I'm trying to figure out a way to distribute a Rails application in a fairly standalone way. Think of Sickbeard or CouchPotato, two apps you only need Python to run.

That's basically what I want to achieve, but with Rails instead. There are some failure stories out there and some that are just too complicated, but I'm hoping that there has been some advancements in the field that I just can't find.

Is there a way to distribute a Rails application including any gems it depends on in a way you only require Ruby installed to run it?

I have no intention of trying to obfuscate the source code.

4

1 回答 1

0

只需使用捆绑器。几乎每个新的 Ruby 安装都有标准的 RubyGems 和 Bundler,因此最终用户应该做的唯一事情是:

$ bundle install
$ rails s

并且将运行安装了所有依赖项的应用程序。

于 2012-09-18T20:15:27.090 回答