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?
相关问题
- Question marks after images and js/css files in ra
- Using :remote => true with hover event
- Eager-loading association count with Arel (Rails 3
- How to specify memcache server to Rack::Session::M
- Why am I getting a “C compiler cannot create execu
相关文章
- Ruby using wrong version of openssl
- Right way to deploy Rails + Puma + Postgres app to
- AWS S3 in rails - how to set the s3_signature_vers
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- How to add a JSON column in MySQL with Rails 5 Mig
- Override env values defined in container spec
- “No explicit conversion of Symbol into String” for
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:
Not that you could get bundle gem itself by doing:
where
bundle.gem
is obtained usinggem fetch bundler
.If you're talking about your application's dependencies, take a look at the bundle package command, which will download all of the dependencies to
./vendor/cache
. You can then copy thevendor
along with your application and Bundler will it instead of fetching the gems off the internet.