Sign In
Start Page | Recent Changes | All Pages | Orphan Pages | Junebug Help

How To Setup Dev Mode

Radiant has a special mode to render your site with all pages with “draft” status. This feature is called Development mode. (Note: This is not the same as the Rails development environment)

To activate it you simply alias your application’s domain with a dev subdomain, so if your normal site is at www.mywebsite.com then create a DNS entry for dev.mywebsite.com pointing to the same IP address.

Radiant will detects access to the site using the development subdomain and render your “draft” pages automatically!

To change the subdomain name from dev, at the command prompt change to the Radiant directory and run script/console and enter this command:


Radiant::Config['dev.host'] = 'preview.mydomain.com'

Anyone will be able to access the development site. Be sure to use some kind of authentication system like mod_auth for Apache 2.0 or Apache 1.3 so that only authorized users can access the dev site.

Note: <r:children:each> does not render draft pages, even in Development Mode. This may change in the future though.


Version 2 (current) | Other versions: « older versions
Page last edited by roydongb on June 25, 2007 07:26 AM (diff)