[gitorious] Re: post-receive error on push

2010-07-16 Thread shin938
OK, My ruby knowledge is zero, but I replaced json_pure 1.4.3 with
1.2.3 and the problem disapeared, I hope its a good solution.


On Jul 17, 12:15 am, shin938  wrote:
> Hi
> I got almost a running gitorious on centos with ruby 1.9,
> when pushing i get the following message, I can see that the source is
> pushed to the repo and i can see the commit message.
> any ideas whats going on? do I need another json gem version?
>
> sha...@shalom-laptop:~/tmp/git-clone/project2-repo2$ git commit -m
> "second"                                                [master
> cea7c6d] second
>  1 files changed, 1 insertions(+), 0 deletions(-)
> sha...@shalom-laptop:~/tmp/git-clone/project2-repo2$ git push origin
> master
> Counting objects: 5, done.
> Writing objects: 100% (3/3), 265 bytes, done.
> Total 3 (delta 0), reused 0 (delta 0)
> /usr/local/lib/ruby/gems/1.9.1/gems/json_pure-1.4.3/lib/json/common.rb:
> 212:in `generate': undefined method `generate' for
> # (NoMethodError)
>         from hooks/post-receive:36:in `'
> => Syncing Gitorious... error: hooks/post-receive exited with error
> code 1
> To g...@mygit.tikalk.com:project-2/project-2-repo-2.git
>    d64fedb..cea7c6d  master -> master

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com


[gitorious] post-receive error on push

2010-07-16 Thread shin938
Hi
I got almost a running gitorious on centos with ruby 1.9,
when pushing i get the following message, I can see that the source is
pushed to the repo and i can see the commit message.
any ideas whats going on? do I need another json gem version?


sha...@shalom-laptop:~/tmp/git-clone/project2-repo2$ git commit -m
"second"[master
cea7c6d] second
 1 files changed, 1 insertions(+), 0 deletions(-)
sha...@shalom-laptop:~/tmp/git-clone/project2-repo2$ git push origin
master
Counting objects: 5, done.
Writing objects: 100% (3/3), 265 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
/usr/local/lib/ruby/gems/1.9.1/gems/json_pure-1.4.3/lib/json/common.rb:
212:in `generate': undefined method `generate' for
# (NoMethodError)
from hooks/post-receive:36:in `'
=> Syncing Gitorious... error: hooks/post-receive exited with error
code 1
To g...@mygit.tikalk.com:project-2/project-2-repo-2.git
   d64fedb..cea7c6d  master -> master

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com


Re: [gitorious] globally setting RAILS_ENV

2010-07-16 Thread Marius Mårnes Mathiesen
On Fri, Jul 16, 2010 at 1:50 PM, shin938  wrote:

> Hi
> I'm new to gitorious and I'm not a ruby programmer,
> I'm installing gitorious on our company server, and I wonder , would
> it be correct to just set RAILS_ENV=production globally in /etc/
> profile so I wouldn't have to set it for every command?


I suppose so, as long as your SSH server reads this file when users push
(via ssh).
However, if you deploy under Passenger - which you should - this is the
default, or you can specify it in the {nginx,apache} config. For the non web
services, the default is production - again a very sane default - so you
shouldn't have to do anything.

Cheers,
- Marius

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com


[gitorious] globally setting RAILS_ENV

2010-07-16 Thread shin938
Hi
I'm new to gitorious and I'm not a ruby programmer,
I'm installing gitorious on our company server, and I wonder , would
it be correct to just set RAILS_ENV=production globally in /etc/
profile so I wouldn't have to set it for every command?

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com