Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Matt Scilipoti

« Newer Snippets
Older Snippets »
Showing 1-3 of 3 total  RSS 

Stop WeBRICK Server in RadRails (if IDE doesn't)

From: http://lists.radrails.org/pipermail/radrails/2006-February/000313.html
Just hit Restart and it will actually be started. Then you can stop it. If
all else fails, delete the file

workspace/.metadata/.plugins/org.radrails.server.core/.servers.

Mongrel on Win32 as Service

Mongrel now has support for running as a Win32 service right out of the box. The support is still rough but works well enough that we decided to release it. You can thank Luis Lavena for working on this and making it so nice.

After you do the gem install, find a Rails application you want to run and do:
$ mongrel_rails_service install -n myapp -r c:\my\path\to\myapp -p 4000 -e production
$ mongrel_rails_service start -n myapp

Now hit the port and poof, works. Stopping the app is just done with:
$ mongrel_rails_service stop -n myapp

And, you can even set the CPU processor affinity for the service when yourun the install command. Can’t even do that on POSIX yet. Now that’s hot.

If you run into an app that’s not running right, my suggestion is to run it with the regular mongrel_rails runner:
$ cd c:\my\path\to\myapp
$ mongrel_rails start -p 4500

Since that will spit out error messages and stuff to the console. Use CTRL-Pause/Break to stop.

Ruby WEBrick as WebDAV Server

From: http://sg.validcode.at/articles/2006/02/25/vision-everywhere

gem install webrick-webdav


If you have done this dowload webdav.rb.txt rename it to webdav.rb put it into the Vision folder and start it with
ruby PATH/TO/VISION/webdav.rb

« Newer Snippets
Older Snippets »
Showing 1-3 of 3 total  RSS