librelist archives

« back to archive

rails environment variables error

rails environment variables error

From:
sankaranarayanan e
Date:
2010-01-19 @ 13:42
Hello everyone

I'm running my rake task in the application on the command line, and
the tests are running ok.


When I use the Integrity. I got the following error

Missing the Rails 2.3.3 gem. Please `gem install -v=2.3.3 rails`, update
your RAILS_GEM_VERSION setting in config/environment.rb for the Rails
version you do have installed, or comment out RAILS_GEM_VERSION to use the
latest version installed.
(in

/home/abs1/integrity/builds/1-8-home-abs1-sample-search_sc-git-master/d60aa97d4b41e3ed21506849fb85cfd8b8053b39)

my command are rake test:units, running these command in delayed job builder


Thanks & Regards
Sankaranarayanan .E

Re: [integrity] rails environment variables error

From:
Matt Davies
Date:
2010-01-19 @ 14:06
Hi Sankaranarayanan .E

Have you ran gem bundle in the integrity app?

If you have and you can confirm that the gems are there, try creating
a bash script on your machine with all the things you need to run, and
then calling the bash script in the Build Scripts window.

like

/var/www/html/bash_script.sh > /path/to/bash_script.log

then tail -f /path/to/bash_script.log whilst you are rebuilding to
watch the output

Matt



2010/1/19 sankaranarayanan e <esankaranarayanan@gmail.com>:
> Hello everyone
>
> I'm running my rake task in the application on the command line, and
> the tests are running ok.
>
>
> When I use the Integrity. I got the following error
>
> Missing the Rails 2.3.3 gem. Please `gem install -v=2.3.3 rails`, update
> your RAILS_GEM_VERSION setting in config/environment.rb for the Rails
> version you do have installed, or comment out RAILS_GEM_VERSION to use the
> latest version installed.
> (in
> 
/home/abs1/integrity/builds/1-8-home-abs1-sample-search_sc-git-master/d60aa97d4b41e3ed21506849fb85cfd8b8053b39)
> my command are rake test:units, running these command in delayed job builder
>
> Thanks & Regards
> Sankaranarayanan .E
>

Re: [integrity] rails environment variables error

From:
Joel Chippindale
Date:
2010-01-19 @ 20:39
A number of people have complained about builds not running under Integrity
recently.

One possible cause is bundler which modifies both the PATH and
RUBYOPT environment variables and can cause problems with your builds.

I've made a patch that resets these variables to their 'pre bundler' state
before running the build

http://github.com/econsultancy/integrity/commit/43d88db381aa5141d4f06fba402c5178d518c657


<http://github.com/econsultancy/integrity/commit/43d88db381aa5141d4f06fba402c5178d518c657>And
Nick Quarantino changed the "patch around a bit to suit my needs, it's a
little cleaner now and will work with Bundler > 0.8."
http://gist.github.com/273075

Try either of these depending on the version of Integrity you are using and
they may resolve your problem.

Hopefully one of these patches will be merged into the gem soon.

J.

2010/1/19 Matt Davies <tonmatt@gmail.com>

> Hi Sankaranarayanan .E
>
> Have you ran gem bundle in the integrity app?
>
> If you have and you can confirm that the gems are there, try creating
> a bash script on your machine with all the things you need to run, and
> then calling the bash script in the Build Scripts window.
>
> like
>
> /var/www/html/bash_script.sh > /path/to/bash_script.log
>
> then tail -f /path/to/bash_script.log whilst you are rebuilding to
> watch the output
>
> Matt
>
>
>
> 2010/1/19 sankaranarayanan e <esankaranarayanan@gmail.com>:
> > Hello everyone
> >
> > I'm running my rake task in the application on the command line, and
> > the tests are running ok.
> >
> >
> > When I use the Integrity. I got the following error
> >
> > Missing the Rails 2.3.3 gem. Please `gem install -v=2.3.3 rails`, update
> > your RAILS_GEM_VERSION setting in config/environment.rb for the Rails
> > version you do have installed, or comment out RAILS_GEM_VERSION to use
> the
> > latest version installed.
> > (in
> >
> 
/home/abs1/integrity/builds/1-8-home-abs1-sample-search_sc-git-master/d60aa97d4b41e3ed21506849fb85cfd8b8053b39)
> > my command are rake test:units, running these command in delayed job
> builder
> >
> > Thanks & Regards
> > Sankaranarayanan .E
> >
>

Re: [integrity] rails environment variables error

From:
sankaranarayanan e
Date:
2010-01-20 @ 06:13
hi,
  It works fine for me. thanks for your reply.

  The problem is the rails 2.3.5 version is activated in integrity. because
of unpack gem in vendor. but i have use 2.3.4 in my application. it doesn't
compliant about already activated gem version. simply says "Missing the
Rails 2.3.3 gem Please `gem install -v=2.3.3 rails`".

+1 for merge the patch in to gem

cheers

Sankaranarayanan .E


On Wed, Jan 20, 2010 at 2:09 AM, Joel Chippindale <
joel.chippindale@gmail.com> wrote:

> A number of people have complained about builds not running under Integrity
> recently.
>
> One possible cause is bundler which modifies both the PATH and
> RUBYOPT environment variables and can cause problems with your builds.
>
> I've made a patch that resets these variables to their 'pre bundler' state
> before running the build
>
> 
http://github.com/econsultancy/integrity/commit/43d88db381aa5141d4f06fba402c5178d518c657
>
>
> 
<http://github.com/econsultancy/integrity/commit/43d88db381aa5141d4f06fba402c5178d518c657>And
> Nick Quarantino changed the "patch around a bit to suit my needs, it's a
> little cleaner now and will work with Bundler > 0.8."
> http://gist.github.com/273075
>
> Try either of these depending on the version of Integrity you are using and
> they may resolve your problem.
>
> Hopefully one of these patches will be merged into the gem soon.
>
> J.
>
> 2010/1/19 Matt Davies <tonmatt@gmail.com>
>
> Hi Sankaranarayanan .E
>>
>> Have you ran gem bundle in the integrity app?
>>
>> If you have and you can confirm that the gems are there, try creating
>> a bash script on your machine with all the things you need to run, and
>> then calling the bash script in the Build Scripts window.
>>
>> like
>>
>> /var/www/html/bash_script.sh > /path/to/bash_script.log
>>
>> then tail -f /path/to/bash_script.log whilst you are rebuilding to
>> watch the output
>>
>> Matt
>>
>>
>>
>> 2010/1/19 sankaranarayanan e <esankaranarayanan@gmail.com>:
>> > Hello everyone
>> >
>> > I'm running my rake task in the application on the command line, and
>> > the tests are running ok.
>> >
>> >
>> > When I use the Integrity. I got the following error
>> >
>> > Missing the Rails 2.3.3 gem. Please `gem install -v=2.3.3 rails`, update
>> > your RAILS_GEM_VERSION setting in config/environment.rb for the Rails
>> > version you do have installed, or comment out RAILS_GEM_VERSION to use
>> the
>> > latest version installed.
>> > (in
>> >
>> 
/home/abs1/integrity/builds/1-8-home-abs1-sample-search_sc-git-master/d60aa97d4b41e3ed21506849fb85cfd8b8053b39)
>> > my command are rake test:units, running these command in delayed job
>> builder
>> >
>> > Thanks & Regards
>> > Sankaranarayanan .E
>> >
>>
>
>