Basic newbie questions: Updating radiant and installing beha

Hi Everyone, I’m a designer (not developer/programmer) trying to wrap
my head around radiant because I’m going to use it with 2 different
clients this month. I currently have an account at textdrive and I
used jake’s tutorial to get it up and running: http://
www.fourhats.com/blog/archive/2006/08/27/radiant-on-textdrive/

here are where my questions finally begin, I ran the following code
using shell access:

svn co http://dev.radiantcms.org/svn/radiant/tags/rel_0-5-2/ ~/
radiant
~/radiant/radiant/bin/radiant ~/web/

Now I understand the first part of this… I took release 0.5.2 from
the subversion archive and copied it to a folder named radiant on my
TD account. The second line in the command I’m not really sure…
did It save the actual radiant app in the radiant folder ( ~/radiant/
radiant/bin/radiant ) and then create an instance in the web
directory? ( ~/web/ ) so that my website is running in instance
mode? Or did I just download the full source of radiant and then made
another copy for the web directory?

I’m going to have to install oliver’s gallery and search behaviors
and I’m confused as to where I have to do this or if its even
possible on Textdrive. Do I install the plugin into my ( ~/web/ )
directory or the ( ~/radiant/radiant/bin/radiant ) directory?

In the future when I want to upgrade radiant to 1.0, etc. Do I svn
another copy to my ( ~/radiant/radiant/bin/radiant ) directory and
then do an --upgrade from my ( ~/web/ ) directory? Or will have i
have to copy all the files over to ( ~/web/ ) again and import the
DB?

Thanks,

svn co http://dev.radiantcms.org/svn/radiant/tags/rel_0-5-2/ ~/
radiant
~/radiant/radiant/bin/radiant ~/web/

The second line in the command I’m not really sure…
did It save the actual radiant app in the radiant folder ( ~/radiant/
radiant/bin/radiant ) and then create an instance in the web
directory? ( ~/web/ ) so that my website is running in instance
mode? Or did I just download the full source of radiant and then made
another copy for the web directory?

I believe you generated a copy of Radiant in instance mode. You would
have to use the --unpack option on the radiant command to get a full
app. However in ~/radiant you should have a full install.

I’m going to have to install oliver’s gallery and search behaviors
and I’m confused as to where I have to do this or if its even
possible on Textdrive. Do I install the plugin into my ( ~/web/ )
directory or the ( ~/radiant/radiant/bin/radiant ) directory?

You probably want to create another instance of Radiant with the
–unpack parameter:

~/radiant/radiant/bin/radiant ~/web_full --unpack

Then copy the behaviors you mention into the ~/web_full/vendor/plugins
directory.

In the future when I want to upgrade radiant to 1.0, etc. Do I svn
another copy to my ( ~/radiant/radiant/bin/radiant ) directory and
then do an --upgrade from my ( ~/web/ ) directory? Or will have i
have to copy all the files over to ( ~/web/ ) again and import the
DB?

You shouldn’t need to import the DB, you can always point your
database.yml to your existing/previous db and then when you upgrade let
the migrations take care of any “upgrading”.

I too find it confusing how to manage a clean upgrade path with Radiant
(or any full-scale Rails app which I also want to extend). My backup
plan is to 1) install a new release fresh, 2) point the database.yml to
the existing database name, 3) then run a “rake db:migrate” to catch it
up with any structural changes, and finally, 4) copy in any of my own or
other behavior plugins from my old install to the new vendor/plugins
directory.

Hope that helps.

Loren

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs