# Can anyone explain how to work with git

**URL:** <https://www.ruby-forum.com/t/can-anyone-explain-how-to-work-with-git/160947>\
**Category:** Radiant CMS\
**Created:** [February 21, 2009, 8:46am UTC](https://www.ruby-forum.com/t/can-anyone-explain-how-to-work-with-git/160947 "2009-02-21T08:46:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![orenshani](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e47c2d/32.png) [@orenshani](https://www.ruby-forum.com/u/orenshani)\
**Post date:** [February 21, 2009, 8:46am UTC](https://www.ruby-forum.com/t/can-anyone-explain-how-to-work-with-git/160947/1 "2009-02-21T08:46:01Z")

</div>

Hi all

I am a newbie to radiant and I am in the stage where I want to create a  
first project just to learn how to work with it.

So after I successfully installed my first project, I would like to add  
some extensions to it and I need some help here.

I tried using git to get along but it gives me all kind of errors (stuff  
about not finding the repository and working dirs), also I understand  
that it needs to be configured somehow.

So can anyone explain in few simple steps hot to get it started?

Many thanks,

Oren

---

<div class="post-metadata">

**Author:** ![orenshani](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e47c2d/32.png) [@orenshani](https://www.ruby-forum.com/u/orenshani)\
**Post date:** [February 23, 2009, 3:16am UTC](https://www.ruby-forum.com/t/can-anyone-explain-how-to-work-with-git/160947/2 "2009-02-23T03:16:39Z")

</div>

Oren,

The easiest way to work with extensions is to use Ray –  
[http://github.com/johnmuhl/radiant-ray-extension/tree/master](http://github.com/johnmuhl/radiant-ray-extension/tree/master).

It will allow you to install, upgrade, diable, and several other tasks.

The extension page also has very good documentation that should get you  
more familiar with extensions.

That said…

To use git, you just cd to the vendor directory in your radiant install.  
And run “git clone git://site.com/project”. You can obtain the git URL  
from the homepage of any Github project.

---

<div class="post-metadata">

**Author:** ![orenshani](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e47c2d/32.png) [@orenshani](https://www.ruby-forum.com/u/orenshani)\
**Post date:** [February 23, 2009, 9:05pm UTC](https://www.ruby-forum.com/t/can-anyone-explain-how-to-work-with-git/160947/3 "2009-02-23T21:05:14Z")

</div>

Ben,

I installed ray with “git clone” but when I try to use it, rake gives me  
all kinds of errors. You can see some of my attempts below. So could you  
please explain? from where I should run the rake commands? also, maybe I  
need my radiant site to be up?

Thanks,

Oren

root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
export RADIANT\_ROOT=/home/oshani/radiant/tryrad  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
rake development ray:extension:search term=fck  
(in /home/oshani/radiant/tryrad/vendor/radiant-ray-extension)  
rake aborted!  
no such file to load – /home/oshani/radiant/config/boot  
/home/oshani/radiant/tryrad/vendor/radiant-ray-extension/Rakefile:16  
(See full trace by running task with --trace)  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
export RADIANT\_ENV\_FILE=/home/oshani/radiant/tryrad/config  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
rake development ray:extension:search term=fck  
(in /home/oshani/radiant/tryrad/vendor/radiant-ray-extension)  
rake aborted!  
no such file to load – /home/oshani/radiant/tryrad/boot  
/home/oshani/radiant/tryrad/vendor/radiant-ray-extension/Rakefile:12  
(See full trace by running task with --trace)  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
rake -v development ray:extension:search term=fck  
(in /home/oshani/radiant/tryrad/vendor/radiant-ray-extension)  
rake aborted!  
no such file to load – /home/oshani/radiant/tryrad/boot  
/home/oshani/radiant/tryrad/vendor/radiant-ray-extension/Rakefile:12  
(See full trace by running task with --trace)  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
rake --trace development ray:extension:search term=fck  
(in /home/oshani/radiant/tryrad/vendor/radiant-ray-extension)  
rake aborted!  
no such file to load – /home/oshani/radiant/tryrad/boot  
/usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’  
/home/oshani/radiant/tryrad/vendor/radiant-ray-extension/Rakefile:12  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2349:in `load' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2349:in `raw\_load\_rakefile’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1985:in  
`load_rakefile' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard\_exception\_handling’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1984:in  
`load_rakefile' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1969:in `run’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in  
`standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31  
/usr/bin/rake:19:in `load’  
/usr/bin/rake:19  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
rake --trace development ray:extension:search term=fck  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
man rake  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
cd ~oshani/tryrad  
-su: cd: /home/oshani/tryrad: No such file or directory  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
cd ~oshani/rakefile/tryrad  
-su: cd: /home/oshani/rakefile/tryrad: No such file or directory  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
cd ~oshani/rakefile/tryrad  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
vi Rakefile  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
rake ray:extension:search term=fck  
(in /home/oshani/radiant/tryrad/vendor/radiant-ray-extension)  
rake aborted!  
no such file to load – /home/oshani/radiant/tryrad/boot  
/home/oshani/radiant/tryrad/vendor/radiant-ray-extension/Rakefile:12  
(See full trace by running task with --trace)  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
export RADIANT\_ROOT=/home/oshani/radiant/tryrad/config  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
rake ray:extension:search term=fck  
(in /home/oshani/radiant/tryrad/vendor/radiant-ray-extension)  
rake aborted!  
no such file to load – /home/oshani/radiant/tryrad/boot  
/home/oshani/radiant/tryrad/vendor/radiant-ray-extension/Rakefile:12  
(See full trace by running task with --trace)  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
export RADIANT\_ENV\_FILE=  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
rake ray:extension:search term=fck  
(in /home/oshani/radiant/tryrad/vendor/radiant-ray-extension)  
rake aborted!  
no such file to load – ./boot  
/home/oshani/radiant/tryrad/vendor/radiant-ray-extension/Rakefile:12  
(See full trace by running task with --trace)  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
export RADIANT\_ENV\_FILE=/home/oshani/radiant/tryrad/config  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
rake ray:extension:search term=fck  
(in /home/oshani/radiant/tryrad/vendor/radiant-ray-extension)  
rake aborted!  
no such file to load – /home/oshani/radiant/tryrad/boot  
/home/oshani/radiant/tryrad/vendor/radiant-ray-extension/Rakefile:12  
(See full trace by running task with --trace)  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
export RADIANT\_ENV\_FILE=/home/oshani/radiant/tryrad/config/config  
root@oshani-laptop:/home/oshani/radiant/tryrad/vendor/radiant-ray-extension#  
rake ray:extension:search term=fck  
(in /home/oshani/radiant/tryrad/vendor/radiant-ray-extension)  
rake aborted!  
Don’t know how to build task ‘ray:extension:search’

(See full trace by running task with --trace)

Ben M. wrote:

> Oren,
> 
> The easiest way to work with extensions is to use Ray –  
> [http://github.com/johnmuhl/radiant-ray-extension/tree/master](http://github.com/johnmuhl/radiant-ray-extension/tree/master).
> 
> It will allow you to install, upgrade, diable, and several other tasks.
> 
> The extension page also has very good documentation that should get you  
> more familiar with extensions.
> 
> That said…
> 
> To use git, you just cd to the vendor directory in your radiant install.  
> And run “git clone git://site.com/project”. You can obtain the git URL  
> from the homepage of any Github project.

---

<div class="post-metadata">

**Author:** ![orenshani](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e47c2d/32.png) [@orenshani](https://www.ruby-forum.com/u/orenshani)\
**Post date:** [February 28, 2009, 7:18am UTC](https://www.ruby-forum.com/t/can-anyone-explain-how-to-work-with-git/160947/4 "2009-02-28T07:18:40Z")

</div>

Hi Ben,

Some progress but still problems. I have ray working now but when I try  
to use it it fails to clone the extension.

root@oshani-laptop:~/radiant/tryrad# rake ray:extension:install  
name=fckeditor(in /home/oshani/radiant/tryrad)  
Initialized empty Git repository in  
/home/oshani/radiant/tryrad/vendor/extensions/fckeditor/.git/  
remote: Counting objects: 751, done.  
remote: Compressing objects: 100% (548/548), done.  
remote: Total 751 (delta 175), reused 723 (delta 164)  
Receiving objects: 100% (751/751), 1.04 MiB | 7 KiB/s, done.  
Resolving deltas: 100% (175/175), done.  
(in /home/oshani/radiant/tryrad)  
rake aborted!  
uninitialized constant Admin::PageController

# (See full trace by running task with --trace)

# The fckeditor extension failed to install properly. Specifically, the failure was caused by the extension’s migrate task: Run `rake radiant:extensions:fckeditor:migrate --trace` for more details. The extension has been disabled and placed in vendor/extensions/.disabled

root@oshani-laptop:~/radiant/tryrad# rake  
radiant:extensions:fckeditor:migrate --trace  
(in /home/oshani/radiant/tryrad)  
rake aborted!  
Don’t know how to build task ‘radiant:extensions:fckeditor:migrate’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1706:in `[]' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2018:in`invoke\_task’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in`each’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in`standard\_exception\_handling’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in`run’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in  
`standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in`run’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31  
/usr/bin/rake:19:in `load’  
/usr/bin/rake:19

So what is it? should I be in a certain location when I run ray?

Thanks,

Oren

Ben M. wrote:

> Oren S. wrote:
> 
> > > I installed ray with “git clone” but when I try to use it, rake gives me  
> > > all kinds of errors.
> 
> Have a look in your root/vendor/extensions directory and make sure ray  
> is there in its own folder.

---

<div class="post-metadata">

**Author:** ![orenshani](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e47c2d/32.png) [@orenshani](https://www.ruby-forum.com/u/orenshani)\
**Post date:** [February 23, 2009, 11:01pm UTC](https://www.ruby-forum.com/t/can-anyone-explain-how-to-work-with-git/160947/5 "2009-02-23T23:01:30Z")

</div>

Oren S. wrote:

> > I installed ray with “git clone” but when I try to use it, rake gives me  
> > all kinds of errors.

Have a look in your root/vendor/extensions directory and make sure ray  
is there in its own folder.

---

<div class="post-metadata">

**Author:** ![orenshani](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e47c2d/32.png) [@orenshani](https://www.ruby-forum.com/u/orenshani)\
**Post date:** [February 28, 2009, 11:10am UTC](https://www.ruby-forum.com/t/can-anyone-explain-how-to-work-with-git/160947/6 "2009-02-28T11:10:11Z")

</div>

Hi Ben,

Okay it works. The problem I had fckeditor was because I tried to  
install an old version that doesn’t work with 0.7.1 … I successfully  
installed other extensions.

Thanks for your help,

Oren
