# Dev and Prod radiant modes

**URL:** <https://www.ruby-forum.com/t/dev-and-prod-radiant-modes/70422>\
**Category:** Radiant CMS\
**Created:** [September 29, 2006, 2:24am UTC](https://www.ruby-forum.com/t/dev-and-prod-radiant-modes/70422 "2006-09-29T02:24:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [September 29, 2006, 2:24am UTC](https://www.ruby-forum.com/t/dev-and-prod-radiant-modes/70422/1 "2006-09-29T02:24:19Z")

</div>

Hi, I started using the dev subdomain trick to allow previewing draft  
pages.  
Is there a way to not allow people access that site using radiant or do  
I  
have to use apache for that kind of access control?

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [September 29, 2006, 2:56am UTC](https://www.ruby-forum.com/t/dev-and-prod-radiant-modes/70422/2 "2006-09-29T02:56:22Z")

</div>

Giovanni I. wrote:

> Hi, I started using the dev subdomain trick to allow previewing draft  
> pages.  
> Is there a way to not allow people access that site using radiant or do I  
> have to use apache for that kind of access control?

You will need to use apache for that. Could someone write a how to up  
for the using Radiant in dev and production modes?

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [September 29, 2006, 9:17am UTC](https://www.ruby-forum.com/t/dev-and-prod-radiant-modes/70422/3 "2006-09-29T09:17:24Z")

</div>

I’ll write a page on the wiki in a few moments. Do you think there’s a  
way  
to have radiant check for authentication if the url is dev?

2006/9/29, John W. Long [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [September 29, 2006, 6:51pm UTC](https://www.ruby-forum.com/t/dev-and-prod-radiant-modes/70422/4 "2006-09-29T18:51:15Z")

</div>

> You could easily create a plugin to do this. It would need to monkey  
> patch the site controller, but it’s definitely doable.

I’ll put it into my pipeline and see what I can do 🙂

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [September 29, 2006, 3:38pm UTC](https://www.ruby-forum.com/t/dev-and-prod-radiant-modes/70422/5 "2006-09-29T15:38:22Z")

</div>

Giovanni I. wrote:

> I’ll write a page on the wiki in a few moments.

Thanks!

> Do you think there’s a way  
> to have radiant check for authentication if the url is dev?

You could easily create a plugin to do this. It would need to monkey  
patch the site controller, but it’s definitely doable.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)
