Can anyone explain how to work with git

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

Oren,

The easiest way to work with extensions is to use Ray –
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.

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.

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.

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:ininvoke_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:ineach’
/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:instandard_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:inrun’
/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:inrun’
/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.

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.

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