[OSM-dev] Strange and inconsistent behaviour on the dev server

Immanuel Scholz immanuel.scholz at gmx.de
Fri Jun 2 13:07:55 BST 2006


Hi,


> I get the right bounding box and area displayed, but tags are not applied.
> The Weybridge area is using exactly the same tag types (the 'old' tags
> using 'class') as the Haslemere/Petersfield area, which *does* show up.
>
> Yet when I use a slightly-modified version of the same
> script, /var/www/nick/ruby/weybridge.rb (this version runs directly from
> the command-line rather than through CGI) I get the correct result which
> you can see at:
>
> http://nick.dev.openstreetmap.org/images/png6.png
>
> The bounding box, width and height parameters are exactly the same!!!!

Surely the "mod_ruby-cache-Problem".  mod_ruby is loaded only once for the
apache instance and this means the ruby interpreter does not reload ruby
files if they are changed sometimes.
Additional to that, global variables are shared among all scripts on the
same apache instance, which means that your scripts may be affected by an
other people running his own scripts at the same moment (especally running
with other scripts!).


Because of this (among other reasons), I proposed several times ago to not
use the development server for, err.. "development" but put always efford
in making it easier to setup your own development server at home (where
you are the only user of your apache instance and can do an
"/etc/init.d/apache restart").


> If so, is there a solution besides using something other than the dev
> server?

The ruby scripts does not need to be executed by apache and mod_ruby. You
can try to use an own webserver instance like webrick (or apache) on a
unprivileged port and launch the scripts as cgi-bin. Good luck. ;-)


Ciao, Imi





More information about the dev mailing list