本文介绍了将ROR应用程序部署到没有互联网访问的机器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完成了一个简单的Ror你好世界的应用程序。现在的问题是我如何可以部署另一个物理上关闭Internet的Window机器。我可以通过USB复制文件和应用程序。但是如何才能将gem安装到该机器上?有没有人有类似的经历?

解决方案

你可以做来打包宝石(在带有互联网的机器中)并复制



然后,您可以使用bundler安装本地宝石:

 安装--local 

不是你可以通过这样做来获取捆绑宝石本身:

  gem install --local bundle.gem 

其中 bundle.gem 是使用 gem fetch bundler 获得的。


I complete a simple Ror hello world application. The problem for me now is how i can deploy it another Window machine which is physically off to the Internet. I can copy files and application by USB. But how can i install gem to that machine? Does anyone have similar experience?

解决方案

You can do bundle package to package the gems (in a machine with internet) and copy over.

You can then install local gems using bundler:

bundle install --local

Not that you could get bundle gem itself by doing:

gem install --local bundle.gem

where bundle.gem is obtained using gem fetch bundler.

这篇关于将ROR应用程序部署到没有互联网访问的机器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 20:01
查看更多