# Instance mode set-up

**URL:** <https://www.ruby-forum.com/t/instance-mode-set-up/106335>\
**Category:** Radiant CMS\
**Created:** [June 8, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335 "2007-06-08T18:47:50Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![iluke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c6cbf5/32.png) [@iluke](https://www.ruby-forum.com/u/iluke)\
**Post date:** [June 8, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335/1 "2007-06-08T18:47:50Z")

</div>

Anyone know where to find the definitive guide for installing in  
instance mode? And does anybody use the Google group anymore or is the  
mailing list the preferred location for questions? Seems that the docs  
and how-to’s for radiant are a little disorganized. Nonetheless, I  
really like the radiant platform but am confused about the ‘what’ and  
‘how’ of instance mode.

-Luke

---

<div class="post-metadata">

**Author:** ![iluke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c6cbf5/32.png) [@iluke](https://www.ruby-forum.com/u/iluke)\
**Post date:** [June 8, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335/2 "2007-06-08T18:52:51Z")

</div>

Instance mode is what you get when you install according to the most  
recent instructions:

[http://radiantcms.org/blog/archives/2007/04/24/radiant-0-6-lapidary-release/](http://radiantcms.org/blog/archives/2007/04/24/radiant-0-6-lapidary-release/)

I believe the Google group was just a mirror for the primary mailing  
list. John has debated moving the list over to Google completely, but  
with 500+ subscribers, that’s hard to do efficiently without losing a  
bunch of people.

Sean

---

<div class="post-metadata">

**Author:** ![iluke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c6cbf5/32.png) [@iluke](https://www.ruby-forum.com/u/iluke)\
**Post date:** [June 9, 2007, 12:48am UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335/3 "2007-06-09T00:48:37Z")

</div>

Anybody else having a problem with the radiant command not installing  
all of the typical rails dirs? When I run ‘radiant path/to/project’,  
I’m not getting the ‘app’, ‘lib’, and other dirs. I’m running winxp with  
rails123, ruby185, rubygems091.

Any help is appreciated.

-Luke

---

<div class="post-metadata">

**Author:** ![iluke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c6cbf5/32.png) [@iluke](https://www.ruby-forum.com/u/iluke)\
**Post date:** [June 9, 2007, 2:00am UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335/4 "2007-06-09T02:00:42Z")

</div>

Thanks, I figured as much until I found this post on the mailing list:  
[http://lists.radiantcms.org/pipermail/radiant/2007-June/005238.html](http://lists.radiantcms.org/pipermail/radiant/2007-June/005238.html)

It seems to say that the radiant command does the same thing as the  
rails command.

So, what I’m doing now is running ‘rails my\_app’, then running the  
radiant install instructions, although now I’m getting an error during  
rake db:bootstrap that the users table doesn’t exist.

One of those days, everything I try is blowing up.

-Luke

---

<div class="post-metadata">

**Author:** ![iluke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c6cbf5/32.png) [@iluke](https://www.ruby-forum.com/u/iluke)\
**Post date:** [June 9, 2007, 12:51am UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335/5 "2007-06-09T00:51:37Z")

</div>

Luke,

Sorry, that’s a feature, not a bug! That’s what we mean by instance  
mode – the minimum of necessary files is placed in your chosen  
directory and the rest is loaded from the gem or from vendor/radiant.  
It’s especially nice for shared hosting or multi-site environments where  
you don’t want to install all of the files for each new site.

Sean

---

<div class="post-metadata">

**Author:** ![iluke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c6cbf5/32.png) [@iluke](https://www.ruby-forum.com/u/iluke)\
**Post date:** [June 9, 2007, 11:51am UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335/6 "2007-06-09T11:51:34Z")

</div>

On 6/8/07, Luke W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Anyone know where to find the definitive guide for installing in  
> instance mode? And does anybody use the Google group anymore or is the  
> mailing list the preferred location for questions? Seems that the docs  
> and how-to’s for radiant are a little disorganized. Nonetheless, I  
> really like the radiant platform but am confused about the ‘what’ and  
> ‘how’ of instance mode.
> 
> -Luke

I have a tip for instance mode: if you happen to install certain  
extensions on all of your Radiant instances, like I do with the Copy  
Move extension, install them in your global radiant extension  
directory instead of your instance dir.

For me on Debian, it’s in  
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/extensions

Of course, in case of a new Radiant Gem version, you will have to move  
your extensions to the new dir, ie. radiant-0.6.2/vendor/extensions

Question: will this still work if I freeze one instance to edge? Will  
the frozen Radiant still be looking in the global vendor/extensions  
dir?

---

<div class="post-metadata">

**Author:** ![iluke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c6cbf5/32.png) [@iluke](https://www.ruby-forum.com/u/iluke)\
**Post date:** [June 9, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335/7 "2007-06-09T19:17:25Z")

</div>

> I have a tip for instance mode: if you happen to install certain  
> extensions on all of your Radiant instances, like I do with the Copy  
> Move extension, install them in your global radiant extension  
> directory instead of your instance dir.

Great tip!

> For me on Debian, it’s in  
> /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/extensions
> 
> Of course, in case of a new Radiant Gem version, you will have to move  
> your extensions to the new dir, ie. radiant-0.6.2/vendor/extensions
> 
> Question: will this still work if I freeze one instance to edge? Will  
> the frozen Radiant still be looking in the global vendor/extensions  
> dir?

No, it will not. RADIANT\_ROOT gets set to vendor/radiant if it exists  
and ignores the gem. However, if you froze the gem instead, the  
extensions should get copied over.

Sean

---

<div class="post-metadata">

**Author:** ![iluke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c6cbf5/32.png) [@iluke](https://www.ruby-forum.com/u/iluke)\
**Post date:** [June 11, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335/8 "2007-06-11T17:24:37Z")

</div>

On 6/9/07, Sean C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Question: will this still work if I freeze one instance to edge? Will  
> > the frozen Radiant still be looking in the global vendor/extensions  
> > dir?
> 
> No, it will not. RADIANT\_ROOT gets set to vendor/radiant if it exists  
> and ignores the gem. However, if you froze the gem instead, the  
> extensions should get copied over.
> 
> Sean

And how do I freeze the gem instead of freezing the Radiant instance?

Thanks!

J.

---

<div class="post-metadata">

**Author:** ![iluke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c6cbf5/32.png) [@iluke](https://www.ruby-forum.com/u/iluke)\
**Post date:** [June 11, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335/9 "2007-06-11T17:28:37Z")

</div>

rake radiant:freeze:gems

Sean

---

<div class="post-metadata">

**Author:** ![iluke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c6cbf5/32.png) [@iluke](https://www.ruby-forum.com/u/iluke)\
**Post date:** [June 11, 2007, 5:37pm UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335/10 "2007-06-11T17:37:42Z")

</div>

On 6/11/07, Sean C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> rake radiant:freeze:gems
> 
> Sean

Simple as that 🙂

Thank you Sean.

J.

---

<div class="post-metadata">

**Author:** ![iluke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c6cbf5/32.png) [@iluke](https://www.ruby-forum.com/u/iluke)\
**Post date:** [June 12, 2007, 11:31pm UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335/11 "2007-06-12T23:31:38Z")

</div>

On 6/11/07, Jonathan Métillon [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On 6/11/07, Sean C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > rake radiant:freeze:gems
> > 
> > Sean
> 
> Simple as that 🙂
> 
> Thank you Sean.
> 
> J.

rake radiant:freeze:gems replaces rake radiant:freeze:edge or should  
be invoked after?

---

<div class="post-metadata">

**Author:** ![iluke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c6cbf5/32.png) [@iluke](https://www.ruby-forum.com/u/iluke)\
**Post date:** [June 12, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335/12 "2007-06-12T23:33:39Z")

</div>

On 6/12/07, Jonathan Métillon [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> rake radiant:freeze:gems replaces rake radiant:freeze:edge or should  
> be invoked after?

I just tried and it looks like freeze:gems first delete vendor/radiant  
then copy the gems.

So, if I freeze to my current gems, then I’m not running edge and  
page\_attachments will break?

Thanks.

J.

---

<div class="post-metadata">

**Author:** ![iluke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c6cbf5/32.png) [@iluke](https://www.ruby-forum.com/u/iluke)\
**Post date:** [June 11, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335/13 "2007-06-11T18:10:47Z")

</div>

`rake -T` will also show you all of the available tasks.

Sean

---

<div class="post-metadata">

**Author:** ![iluke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c6cbf5/32.png) [@iluke](https://www.ruby-forum.com/u/iluke)\
**Post date:** [June 13, 2007, 1:06am UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335/14 "2007-06-13T01:06:50Z")

</div>

That is correct. We should have 0.6.2 soon though… John said in a  
week or two last time we talked.

Sean

---

<div class="post-metadata">

**Author:** ![iluke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c6cbf5/32.png) [@iluke](https://www.ruby-forum.com/u/iluke)\
**Post date:** [June 13, 2007, 6:55pm UTC](https://www.ruby-forum.com/t/instance-mode-set-up/106335/15 "2007-06-13T18:55:50Z")

</div>

Luke W. wrote:

> Thanks, I figured as much until I found this post on the mailing list:  
> [http://lists.radiantcms.org/pipermail/radiant/2007-June/005238.html](http://lists.radiantcms.org/pipermail/radiant/2007-June/005238.html)
> 
> It seems to say that the radiant command does the same thing as the  
> rails command.
> 
> So, what I’m doing now is running ‘rails my\_app’, then running the  
> radiant install instructions, although now I’m getting an error during  
> rake db:bootstrap that the users table doesn’t exist.

Do not use the rails command and then the radiant command! All you need  
is the radiant command.

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