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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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@wildfireapp.com (mailto: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 > > > > > > -- > > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm (mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm). > > > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > > > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm). > > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com (mailto:rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 pointtowards 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 > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 9 June 2012 20:11, tom <tomabroad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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...Does it run ok if you do something like RAILS_ENV=development rake .....> > thx for any pointers > > > > > On Sat, Jun 9, 2012 at 8:51 PM, Oscar Del Ben <oscar.delben@wildfireapp.com> > wrote: >> >> what''s the content of Rakefile? >> >> -- >> Oscar Del Ben >> Sent with Sparrow >> >> 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 >> >> 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 >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
no, it executes eg the migrations on the staging-db, but if i start up webrick via "rails s" it comes up the standard development environment where does rake get the environment info if i ommit ''RAILS_ENV'' when executing a rake command? thx On Sat, Jun 9, 2012 at 10:21 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 9 June 2012 20:11, tom <tomabroad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > 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... > > Does it run ok if you do something like > RAILS_ENV=development rake ..... > > > > > 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 > >> > >> 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 > >> > >> 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 > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Ruby on Rails: Talk" group. > >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> To unsubscribe from this group, send email to > >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> For more options, visit this group at > >> http://groups.google.com/group/rubyonrails-talk?hl=en. > >> > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Ruby on Rails: Talk" group. > >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> To unsubscribe from this group, send email to > >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> For more options, visit this group at > >> http://groups.google.com/group/rubyonrails-talk?hl=en. > >> > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Ruby on Rails: Talk" group. > >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> To unsubscribe from this group, send email to > >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> For more options, visit this group at > >> http://groups.google.com/group/rubyonrails-talk?hl=en. > >> > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Ruby on Rails: Talk" group. > >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> To unsubscribe from this group, send email to > >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> For more options, visit this group at > >> http://groups.google.com/group/rubyonrails-talk?hl=en. > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group at > > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 9 June 2012 23:10, tom <tomabroad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> no, it executes eg the migrations on the staging-db, but if i start up > webrick via "rails s" it comes up the standard development environmentSince you have top posted (rather than inline) I am not certain what you are saying no to. Are you saying that if you do RAILS_ENV=development rake db:migrate that it runs on the staging environment and not development? Colin> > where does rake get the environment info if i ommit ''RAILS_ENV'' when > executing a rake command? > > thx > > > On Sat, Jun 9, 2012 at 10:21 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> >> On 9 June 2012 20:11, tom <tomabroad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > 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... >> >> Does it run ok if you do something like >> RAILS_ENV=development rake ..... >> >> > >> > 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 >> >> >> >> 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 >> >> >> >> 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 >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> >> Groups >> >> "Ruby on Rails: Talk" group. >> >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm. >> >> To unsubscribe from this group, send email to >> >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >> For more options, visit this group at >> >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> >> Groups >> >> "Ruby on Rails: Talk" group. >> >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm. >> >> To unsubscribe from this group, send email to >> >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >> For more options, visit this group at >> >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> >> Groups >> >> "Ruby on Rails: Talk" group. >> >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm. >> >> To unsubscribe from this group, send email to >> >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >> For more options, visit this group at >> >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> >> Groups >> >> "Ruby on Rails: Talk" group. >> >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm. >> >> To unsubscribe from this group, send email to >> >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >> For more options, visit this group at >> >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "Ruby on Rails: Talk" group. >> > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org. >> > To unsubscribe from this group, send email to >> > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > For more options, visit this group at >> > http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
yes, thats correct RAILS_ENV=development rake db:migrate>> runs in staging env.thx On Sun, Jun 10, 2012 at 9:36 AM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 9 June 2012 23:10, tom <tomabroad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > no, it executes eg the migrations on the staging-db, but if i start up > > webrick via "rails s" it comes up the standard development environment > > Since you have top posted (rather than inline) I am not certain what > you are saying no to. Are you saying that if you do > RAILS_ENV=development rake db:migrate > that it runs on the staging environment and not development? > > Colin > > > > > where does rake get the environment info if i ommit ''RAILS_ENV'' when > > executing a rake command? > > > > thx > > > > > > On Sat, Jun 9, 2012 at 10:21 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > wrote: > >> > >> On 9 June 2012 20:11, tom <tomabroad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> > 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... > >> > >> Does it run ok if you do something like > >> RAILS_ENV=development rake ..... > >> > >> > > >> > 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 > >> >> > >> >> 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 > >> >> > >> >> 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 > >> >> > >> >> -- > >> >> You received this message because you are subscribed to the Google > >> >> Groups > >> >> "Ruby on Rails: Talk" group. > >> >> To post to this group, send email to > rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> >> To unsubscribe from this group, send email to > >> >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> >> For more options, visit this group at > >> >> http://groups.google.com/group/rubyonrails-talk?hl=en. > >> >> > >> >> > >> >> -- > >> >> You received this message because you are subscribed to the Google > >> >> Groups > >> >> "Ruby on Rails: Talk" group. > >> >> To post to this group, send email to > rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> >> To unsubscribe from this group, send email to > >> >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> >> For more options, visit this group at > >> >> http://groups.google.com/group/rubyonrails-talk?hl=en. > >> >> > >> >> > >> >> -- > >> >> You received this message because you are subscribed to the Google > >> >> Groups > >> >> "Ruby on Rails: Talk" group. > >> >> To post to this group, send email to > rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> >> To unsubscribe from this group, send email to > >> >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> >> For more options, visit this group at > >> >> http://groups.google.com/group/rubyonrails-talk?hl=en. > >> >> > >> >> > >> >> -- > >> >> You received this message because you are subscribed to the Google > >> >> Groups > >> >> "Ruby on Rails: Talk" group. > >> >> To post to this group, send email to > rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> >> To unsubscribe from this group, send email to > >> >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> >> For more options, visit this group at > >> >> http://groups.google.com/group/rubyonrails-talk?hl=en. > >> > > >> > > >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups > >> > "Ruby on Rails: Talk" group. > >> > To post to this group, send email to > rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> > To unsubscribe from this group, send email to > >> > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> > For more options, visit this group at > >> > http://groups.google.com/group/rubyonrails-talk?hl=en. > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Ruby on Rails: Talk" group. > >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> To unsubscribe from this group, send email to > >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> For more options, visit this group at > >> http://groups.google.com/group/rubyonrails-talk?hl=en. > >> > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group at > > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 10 June 2012 11:19, tom <tomabroad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: Top posting still :(> yes, thats correct > > RAILS_ENV=development rake db:migrate >>> runs in staging env.I don''t understand why you then went on to ask>> > where does rake get the environment info if i ommit ''RAILS_ENV'' when >> > executing a rake command?Two points (please reply inline so that it makes it easier to follow the thread. Thanks 1. How do you know that rake db:migrate is running in staging environment? 2. Please post database.yml here. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
inline On Sun, Jun 10, 2012 at 12:30 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 10 June 2012 11:19, tom <tomabroad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Top posting still :( > > > yes, thats correct > > > > RAILS_ENV=development rake db:migrate > >>> runs in staging env. > > I don''t understand why you then went on to ask > >> > where does rake get the environment info if i ommit ''RAILS_ENV'' when > >> > executing a rake command? > > Two points (please reply inline so that it makes it easier to follow > the thread. Thanks > > 1. How do you know that rake db:migrate is running in staging environment? > > because the migrations are being executed on the staging-db (eg adding a > new colum) > 2. Please post database.yml here. >>> database.yml is pretty much standard:staging: adapter: mysql2 encoding: utf8 reconnect: false database: myproject_staging pool: 5 username: myproject_dbuser password: myproject_dbuser socket: /var/run/mysqld/mysqld.sock development: adapter: mysql2 encoding: utf8 reconnect: false database: myproject_development pool: 5 username: myproject_dbuser password: myproject_dbuser socket: /var/run/mysqld/mysqld.sock test: adapter: mysql2 encoding: utf8 reconnect: false database: myproject_test pool: 5 username: myproject_dbuser password: myproject_dbuser socket: /var/run/mysqld/mysqld.sock production: adapter: mysql2 encoding: utf8 reconnect: false database: myproject_production pool: 5 username: myproject_dbuser password: myproject_dbuser socket: /var/run/mysqld/mysqld.sock>> as i said, starting webrick works fine in different environments,whereas rake tasks always use "staging", no matter what specify. here a sample of a migration: rails g migration add name_to_testbooks name:string /home/tom/.rvm/gems/ruby-1.9.3-p194@mygemset/gems/railties-3.2.1/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /home/tom in PATH, mode 040777 /home/tom/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler/runtime.rb:211: warning: Insecure world writable dir /home/tom in PATH, mode 040777 invoke active_record create db/migrate/20120610111033_add.rb tom@debian6ror3:~/rails3/myproject$ RAILS_ENV=development rake db:migrate --trace /home/tom/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler/runtime.rb:211: warning: Insecure world writable dir /home/tom in PATH, mode 040777 ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Invoke db:load_config (first_time) ** Invoke rails_env (first_time) ** Execute rails_env ** Execute db:load_config ** Execute db:migrate == Add: migrating ===========================================================-- add_column(:testbooks, :name, :string) -> 0.3212s == Add: migrated (0.3216s) ================================================== ** Invoke db:_dump (first_time) ** Execute db:_dump ** Invoke db:schema:dump (first_time) ** Invoke environment ** Invoke db:load_config ** Execute db:schema:dump furthermore, removing staging from the database.yml results in rake telling me that it doesnt find a staging adapter - even though when i run in ''''dev mode" @rvm i installed a user-rvm, straight from the docs. does that interfere? @ill setup a new user and rvm again, then reusing the GEMFILE/rvmrc> Colin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
How about running: "export RAILS_ENV=development ; rake about" What does rake report for Environment in this case? On Sunday, June 10, 2012 6:30:39 AM UTC-4, Colin Law wrote:> > On 10 June 2012 11:19, tom <tomabroad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Top posting still :( > > > yes, thats correct > > > > RAILS_ENV=development rake db:migrate > >>> runs in staging env. > > I don''t understand why you then went on to ask > >> > where does rake get the environment info if i ommit ''RAILS_ENV'' when > >> > executing a rake command? > > Two points (please reply inline so that it makes it easier to follow > the thread. Thanks > > 1. How do you know that rake db:migrate is running in staging environment? > > 2. Please post database.yml here. > > Colin >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/xFP2wgVxtEAJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 10 June 2012 14:25, Rick <richard.t.lloyd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> How about running: "export RAILS_ENV=development ; rake about" > > What does rake report for Environment in this case?I had forgotten rake about, what does rake about show without setting RAILS_ENV? Colin> > > On Sunday, June 10, 2012 6:30:39 AM UTC-4, Colin Law wrote: >> >> On 10 June 2012 11:19, tom <tomabroad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> Top posting still :( >> >> > yes, thats correct >> > >> > RAILS_ENV=development rake db:migrate >> >>> runs in staging env. >> >> I don''t understand why you then went on to ask >> >> > where does rake get the environment info if i ommit ''RAILS_ENV'' when >> >> > executing a rake command? >> >> Two points (please reply inline so that it makes it easier to follow >> the thread. Thanks >> >> 1. How do you know that rake db:migrate is running in staging environment? >> >> 2. Please post database.yml here. >> >> Colin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/xFP2wgVxtEAJ. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I''m not really too up on rvm but I wonder... Is it possible that your work environment, specifically the login shell that you are using to type commands in a terminal window, includes an alias for rake? Since staging is not one of the three default environments for RoR it had to be created with all rules for it''s use somewhere "outside" the vanilla system. What I''m thinking is that somewhere you have a runtime command file (eg.: .bashrc, .cshrc, .profile, ...) that contains a line: *alias rake=''rake RAILS_ENV=staging''* To find out if this is so, type: *alias rake* Rick On Sunday, June 10, 2012 7:19:30 AM UTC-4, der_tom wrote:> > inline > > On Sun, Jun 10, 2012 at 12:30 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>wrote: > >> On 10 June 2012 11:19, tom <tomabroad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> Top posting still :( >> >> > yes, thats correct >> > >> > RAILS_ENV=development rake db:migrate >> >>> runs in staging env. >> >> I don''t understand why you then went on to ask >> >> > where does rake get the environment info if i ommit ''RAILS_ENV'' when >> >> > executing a rake command? >> >> Two points (please reply inline so that it makes it easier to follow >> the thread. Thanks >> >> 1. How do you know that rake db:migrate is running in staging environment? >> > because the migrations are being executed on the staging-db (eg adding >> a new colum) >> 2. Please post database.yml here. >> > > >> database.yml is pretty much standard: > > staging: > adapter: mysql2 > encoding: utf8 > reconnect: false > database: myproject_staging > pool: 5 > username: myproject_dbuser > password: myproject_dbuser > socket: /var/run/mysqld/mysqld.sock > development: > adapter: mysql2 > encoding: utf8 > reconnect: false > database: myproject_development > pool: 5 > username: myproject_dbuser > password: myproject_dbuser > socket: /var/run/mysqld/mysqld.sock > test: > adapter: mysql2 > encoding: utf8 > reconnect: false > database: myproject_test > pool: 5 > username: myproject_dbuser > password: myproject_dbuser > socket: /var/run/mysqld/mysqld.sock > production: > adapter: mysql2 > encoding: utf8 > reconnect: false > database: myproject_production > pool: 5 > username: myproject_dbuser > password: myproject_dbuser > socket: /var/run/mysqld/mysqld.sock > > > >> as i said, starting webrick works fine in different environments, > whereas rake tasks always use "staging", no matter what specify. here a > sample of a migration: > rails g migration add name_to_testbooks name:string > /home/tom/.rvm/gems/ruby-1.9.3-p194@mygemset/gems/railties-3.2.1/lib/rails/script_rails_loader.rb:11: > warning: Insecure world writable dir /home/tom in PATH, mode 040777 > /home/tom/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler/runtime.rb:211: > warning: Insecure world writable dir /home/tom in PATH, mode 040777 > invoke active_record > create db/migrate/20120610111033_add.rb > tom@debian6ror3:~/rails3/myproject$ RAILS_ENV=development rake db:migrate > --trace > /home/tom/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler/runtime.rb:211: > warning: Insecure world writable dir /home/tom in PATH, mode 040777 > ** Invoke db:migrate (first_time) > ** Invoke environment (first_time) > ** Execute environment > ** Invoke db:load_config (first_time) > ** Invoke rails_env (first_time) > ** Execute rails_env > ** Execute db:load_config > ** Execute db:migrate > == Add: migrating > ===========================================================> -- add_column(:testbooks, :name, :string) > -> 0.3212s > == Add: migrated (0.3216s) > ==================================================> > ** Invoke db:_dump (first_time) > ** Execute db:_dump > ** Invoke db:schema:dump (first_time) > ** Invoke environment > ** Invoke db:load_config > ** Execute db:schema:dump > > > furthermore, removing staging from the database.yml results in rake > telling me that it doesnt find a staging adapter - even though when i run > in ''''dev mode" > > @rvm i installed a user-rvm, straight from the docs. does that interfere? > > @ill setup a new user and rvm again, then reusing the GEMFILE/rvmrc > > > > > > > >> Colin >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/c1sYuOVIS5oJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
good points rick, it lead me to the issue: my system-user groupmembership was wrong. i added for some other reasons my system user to the root and some other groups...that messed everythign up. using a new user, same rvmrc & Gemfile works again as expected. thx On Mon, Jun 11, 2012 at 3:30 PM, Rick <richard.t.lloyd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m not really too up on rvm but I wonder... > > Is it possible that your work environment, specifically the login shell > that you are using to type commands in a terminal window, includes an alias > for rake? Since staging is not one of the three default environments for > RoR it had to be created with all rules for it''s use somewhere "outside" > the vanilla system. > > What I''m thinking is that somewhere you have a runtime command file (eg.: > .bashrc, .cshrc, .profile, ...) that contains a line: > *alias rake=''rake RAILS_ENV=staging''* > > To find out if this is so, type: > *alias rake* > > Rick > > > On Sunday, June 10, 2012 7:19:30 AM UTC-4, der_tom wrote: >> >> inline >> >> On Sun, Jun 10, 2012 at 12:30 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>wrote: >> >>> On 10 June 2012 11:19, tom <tomabroad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> >>> Top posting still :( >>> >>> > yes, thats correct >>> > >>> > RAILS_ENV=development rake db:migrate >>> >>> runs in staging env. >>> >>> I don''t understand why you then went on to ask >>> >> > where does rake get the environment info if i ommit ''RAILS_ENV'' >>> when >>> >> > executing a rake command? >>> >>> Two points (please reply inline so that it makes it easier to follow >>> the thread. Thanks >>> >>> 1. How do you know that rake db:migrate is running in staging >>> environment? >>> > because the migrations are being executed on the staging-db (eg adding >>> a new colum) >>> 2. Please post database.yml here. >>> >> >> >> database.yml is pretty much standard: >> >> staging: >> adapter: mysql2 >> encoding: utf8 >> reconnect: false >> database: myproject_staging >> pool: 5 >> username: myproject_dbuser >> password: myproject_dbuser >> socket: /var/run/mysqld/mysqld.sock >> development: >> adapter: mysql2 >> encoding: utf8 >> reconnect: false >> database: myproject_development >> pool: 5 >> username: myproject_dbuser >> password: myproject_dbuser >> socket: /var/run/mysqld/mysqld.sock >> test: >> adapter: mysql2 >> encoding: utf8 >> reconnect: false >> database: myproject_test >> pool: 5 >> username: myproject_dbuser >> password: myproject_dbuser >> socket: /var/run/mysqld/mysqld.sock >> production: >> adapter: mysql2 >> encoding: utf8 >> reconnect: false >> database: myproject_production >> pool: 5 >> username: myproject_dbuser >> password: myproject_dbuser >> socket: /var/run/mysqld/mysqld.sock >> >> >> >> as i said, starting webrick works fine in different environments, >> whereas rake tasks always use "staging", no matter what specify. here a >> sample of a migration: >> rails g migration add name_to_testbooks name:string >> /home/tom/.rvm/gems/ruby-1.9.**3-p194@mygemset/gems/railties-** >> 3.2.1/lib/rails/script_rails_**loader.rb:11: warning: Insecure world >> writable dir /home/tom in PATH, mode 040777 >> /home/tom/.rvm/gems/ruby-1.9.**3-p194@global/gems/bundler-1.** >> 1.4/lib/bundler/runtime.rb:**211: warning: Insecure world writable dir >> /home/tom in PATH, mode 040777 >> invoke active_record >> create db/migrate/20120610111033_**add.rb >> tom@debian6ror3:~/rails3/**myproject$ RAILS_ENV=development rake >> db:migrate --trace >> /home/tom/.rvm/gems/ruby-1.9.**3-p194@global/gems/bundler-1.** >> 1.4/lib/bundler/runtime.rb:**211: warning: Insecure world writable dir >> /home/tom in PATH, mode 040777 >> ** Invoke db:migrate (first_time) >> ** Invoke environment (first_time) >> ** Execute environment >> ** Invoke db:load_config (first_time) >> ** Invoke rails_env (first_time) >> ** Execute rails_env >> ** Execute db:load_config >> ** Execute db:migrate >> == Add: migrating ==============================** >> =============================>> -- add_column(:testbooks, :name, :string) >> -> 0.3212s >> == Add: migrated (0.3216s) ==============================** >> ====================>> >> ** Invoke db:_dump (first_time) >> ** Execute db:_dump >> ** Invoke db:schema:dump (first_time) >> ** Invoke environment >> ** Invoke db:load_config >> ** Execute db:schema:dump >> >> >> furthermore, removing staging from the database.yml results in rake >> telling me that it doesnt find a staging adapter - even though when i run >> in ''''dev mode" >> >> @rvm i installed a user-rvm, straight from the docs. does that interfere? >> >> @ill setup a new user and rvm again, then reusing the GEMFILE/rvmrc >> >> >> >> >> >> >> >>> Colin >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Ruby on Rails: Talk" group. >>> To post to this group, send email to rubyonrails-talk@googlegroups.**com<rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >>> . >>> To unsubscribe from this group, send email to >>> rubyonrails-talk+unsubscribe@**googlegroups.com<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >>> . >>> For more options, visit this group at http://groups.google.com/** >>> group/rubyonrails-talk?hl=en<http://groups.google.com/group/rubyonrails-talk?hl=en> >>> . >>> >>> >> -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/c1sYuOVIS5oJ. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.