Re: rake about > Environment staging

tom
2012-06-09T19:11:26Z

hi,
its just a simple rake import tasks (using :environment, but all my rake
commands are affected, even a migration goes straight to staging...

namespace :import do
  desc "import automobiles step1"
  task :automobiles => :environment do
    .....
    ........

> i''ve checked everything for staging, but i dont see what could
point
towards staging. ill try to setup a new system-user and rerun rvm setup
with the same rvmrc file...

thx for any pointers




On Sat, Jun 9, 2012 at 8:51 PM, Oscar Del Ben
<oscar.delben-x2GpsThumDamLaUXeIOdZg@public.gmane.org>wrote:

> what''s the content of Rakefile?
>
> --
> Oscar Del Ben
> Sent with Sparrow <http://www.sparrowmailapp.com/?sig>
>
> On Friday, June 8, 2012 at 12:14 PM, tom wrote:
>
> its empty
>
> here are some values from ''env''
>
> MY_RUBY_HOME=/home/tom/.rvm/rubies/ruby-1.9.3-p194
> rvm_bin_path=/home/tom/.rvm/bin
> GEM_HOME=/home/tom/.rvm/gems/ruby-1.9.3-p194@mygemset
> TERM=xterm
> SHELL=/bin/bash
> IRBRC=/home/tom/.rvm/rubies/ruby-1.9.3-p194/.irbrc
> rvm_path=/home/tom/.rvm
> escape_flag=1
> rvm_prefix=/home/tom
> MAIL=/var/mail/tom
> PATH=/home/tom/.rvm/gems/ruby-1.9.3-p194@mygemset
> /bin:/home/tom/.rvm/gems/ruby-1.9.3-p194@global
>
/bin:/home/tom/.rvm/rubies/ruby-1.9.3-p194/bin:/home/tom/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/lib/gems/1.8/bin
> LANG=en_US.UTF-8
> _second=1
> rvm_version=1.14.1 (stable)
> SHLVL=1
> HOME=/home/tom
> _first=0
> LOGNAME=tom
> GEM_PATH=/home/tom/.rvm/gems/ruby-1.9.3-p194@mygemset
> :/home/tom/.rvm/gems/ruby-1.9.3-p194@global
> install_flag=1
> RUBY_VERSION=ruby-1.9.3-p194
> _=/usr/bin/env
>
>
> i did delete all rvm stuff, rebooted and reinstalled rvm. this is my rvmrc
> file:
> rvm_trust_rvmrcs_flag=1
> rvm use ruby-1.9.3-p194@mygemset --create
>
> thx
>
>
> On Fri, Jun 8, 2012 at 6:32 PM, Oscar Del Ben <
> oscar.delben-x2GpsThumDamLaUXeIOdZg@public.gmane.org> wrote:
>
> What''s the output of echo $RAILS_ENV ?
>
> --
> Oscar Del Ben
> Sent with Sparrow <http://www.sparrowmailapp.com/?sig>
>
> On Friday, June 8, 2012 at 8:10 AM, tom wrote:
>
> hi,
> im using rvm + gemsets, but i dont know why rake always picks staging
> environment. i did not set this anywhere manually. any ideas?
> thx