Ruby on rails Rails应用程序到独立包,包括gem依赖项

Ruby on rails Rails应用程序到独立包,包括gem依赖项,ruby-on-rails,package,Ruby On Rails,Package,是否可以为Rails应用程序制作一个包(比如Heroku slug),其中包含所有gem依赖项 然后将包复制到远程服务器,输入其目录并执行“bundle exec rails”、“bundle exec sidekiq”或其他任何操作。我不确定这是否那么简单,但您可以使用bundle package将所有gem文件放在一个位置,以便以后安装时轻松 bundle package(1) bundle-package.1.html Package the .gem files requir

是否可以为Rails应用程序制作一个包(比如Heroku slug),其中包含所有gem依赖项


然后将包复制到远程服务器,输入其目录并执行“bundle exec rails”、“bundle exec sidekiq”或其他任何操作。

我不确定这是否那么简单,但您可以使用
bundle package
将所有gem文件放在一个位置,以便以后安装时轻松

bundle package(1) bundle-package.1.html
      Package the .gem files required by  your  application  into  the
      vendor/cache directory

有一个选项可以捆绑安装以使用这些供应商的gem。我现在想不起来了,但文档应该会打开它。

也许你是说“捆绑安装--部署”?