List Info

Thread: Re: redo_dev_db needed, main_url question...




Re: redo_dev_db needed, main_url question...
user name
2007-04-25 16:56:09
A rake redo_dev_db is needed, and see below for other
changes that
need attention...

~ Sub-dirs, domain-levels & language-subdomains fixed ~

In response to koetjeboe's (from the RU-team) question about
the
main_url, and his reference to: http://gipdev.sc
ience.ru.nl/giplogi/
I decided to fix this issue, so Manta will now work on
domains of an
arbitrary level (like s.o.m.e.domain.org) at liking without
language-
sub-domains, and inside sub-dirs (like /giplogi/).

For this a new setting was added to the configuration, which
now
resides in config/config.rb named use_language_subdomains.
Set this to
false if you don't have them on your test-server and if you
don't want
to fix this by adding them to your /etc/hosts file.

For running inside a sub-dir you should use Mongrel or
Apache. With
mongrel you just can do: mongrel_rails start -prefix /mydir
to run it inside that sub-dir.

~ Changes ~

Besides the redo_dev_db the configuration is now in
config/config.rb.
But this file is in the repository as config/config.rb.tmpl
because
different config-settings are now becoming more usual.

So you will need to rename this file to config/config.rb
after
updating your copy of Manta.

Please report all bugs.

greetings,

Wybo

PS: The answer to the question from IRC where the main_url
is created: 
In config/routes.rb there is map.main, from this rails
generates the
main_url. In this process ActionController::UrlRewriter's
rewrite-method 
is called, which is overidden in
lib/extensions/action_controller.rb
to add language subdomains (if these are enabled as of my
new commit).

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
LogiLogi-list mailing list
LogiLogi-listlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/logilogi-
list

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )