How do I install stones locally?

I don't have an internet connection on the server machine, so I need to install stones locally. I tried

gem install rails-2.3.4.gem

But I am getting errors.

How to install stones locally.

Thanks.

+2


a source to share


2 answers


You can either



  • Find all gem dependencies and install them with gem install

    or better

  • Copy gem dirs from another machine (same OS, etc.). You can find the directory you gem environment

    want by running the command and checking the GEM PATHS (see below). You may also need to copy files from EXECUTABLE DIRECTORY.

    RubyGems environment:

    • CROSSING VERSION: 1.3.2
    • RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
    • INSTALLATION MANUAL: /usr/lib/ruby/gems/1.8
    • RUBY EXECUTABLE: /usr/bin/ruby1.8
    • EXECUTABLE DIRECTORY: / usr / bin
    • RUBING PLATFORMS:
      • ruby
      • x86-Linux
    • GEM PATHS:
      • /usr/lib/ruby/gems/1.8
      • /home/chris/.gem/ruby/1.8
    • GEM CONFIGURATION:
    • REMOTE SOURCES:
+1


a source


If you are working with Rails, I suggest unpacking the vendor gems before deploying to the server.



+1


a source







All Articles