Re: [LogiLogi-list] redo_dev_db needed, main_url question...
Status: Beta
Brought to you by:
wybow
|
From: Wybo W. <wy...@lo...> - 2007-04-25 21:56:27
|
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.science.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). |