[Mongrel] offline/local install of mongrel_service

Luis Lavena luislavena at gmail.com
Wed Sep 17 13:48:26 EDT 2008


On Wed, Sep 17, 2008 at 12:14 PM, Zainab Memon <lists at ruby-forum.com> wrote:
> I am trying to install mongrel_service 0.3.4 on a server that does not
> have any outside internet connection.  It has ruby 1.8.6 and I have been
> installing gems by copying the source into
> ..\ruby\lib\ruby\gems\1.8\gems and then doing a gem install --local
> using the .gem file.  I was able to find and install all the gem
> dependencies of mongrel_service through rubyforge except win32-service
> which required version 0.5.2, which was not readily available through
> rubyforge's win32 utilities page
> (http://rubyforge.org/frs/?group_id=85).  I ended up finding the gem
> win32-service-0.5.2-mswin32.gem I needed through google
> (http://rubyforge.org/frs/download.php/15355/win32-service-0.5.2-mswin32.gem)
> but I suspect if might have been corrupted.  I installed this gem, then
> installed mongrel_service.  After installing mongrel_service there is no
> mongrel_service.exe  in ..\ruby\bin.  Does anyone have any suggestions
> as to how I can successfully install mongrel_service?
>

Hello Zainab,

If you don't have internet access, then will be really hard for you to
fulfill all the dependencies.

if win32utils project administrator decided to hide previous releases,
the files are still there, as you found. The gem is not corrupted.

The mongrel_service executable will be copied automatically the first
time you install (with service::install) a Rails application.

So:

1) download manually the following gems (you can use wget or enter the
url in your browser)

http://gems.rubyforge.org/gems/cgi_multipart_eof_fix-2.5.0.gem
http://gems.rubyforge.org/gems/mongrel-1.1.5-x86-mswin32-60.gem
http://gems.rubyforge.org/gems/gem_plugin-0.2.3.gem
http://gems.rubyforge.org/gems/mongrel_service-0.3.4-i386-mswin32.gem
http://gems.rubyforge.org/gems/win32-service-0.5.2-mswin32.gem

2) install with gem install --local in the same order I listed above.

3) install your rails application as service:

mongrel_rails service::install (all the params here)

4) Done, you can now start the service with "net start ..." and "net stop ..."

HTH,
-- 
Luis Lavena
AREA 17
-
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams


More information about the Mongrel-users mailing list