Re: [rspec-users] App can't start on production server due to RSpec missing

2009-04-13 Thread Fernando Perez
>> A quick fix is to install rspec and rspec-rails gems on production >> server, but I don't get why the app wants them installed. > > This is a tricky business. > > We put that in there in response to a user who works on a team. One > team member had pulled code and tried t run specs and got an

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-18 Thread Scott Taylor
Andrew Premdas wrote: If your using capistrano you could delete this file when deploying. Or just not version control it: git rm -rf --cached lib/tasks/rspec.rake echo "lib/tasks/rspec.rake" >> .gitignore Scott 2009/1/16 Scott Taylor > On Jan 16, 2009,

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-18 Thread Jonathan Linowes
On Jan 17, 2009, at 2:14 PM, Mark Wilden wrote: On Sat, Jan 17, 2009 at 5:42 AM, Jonathan Linowes wrote: On Jan 16, 2009, at 4:15 PM, Fernando Perez wrote: I run rspec on my dev machine, but obviously not on my production machine, what would be the nicest way to handle such scenario? At th

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-17 Thread Mark Wilden
On Sat, Jan 17, 2009 at 5:42 AM, Jonathan Linowes wrote: > > On Jan 16, 2009, at 4:15 PM, Fernando Perez wrote: > > I run rspec on my dev machine, but obviously not on my production >> machine, what would be the nicest way to handle such scenario? At the >> > > Actually, I run specs on my product

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-17 Thread Jonathan Linowes
On Jan 16, 2009, at 4:15 PM, Fernando Perez wrote: I run rspec on my dev machine, but obviously not on my production machine, what would be the nicest way to handle such scenario? At the Actually, I run specs on my production machine, cap deploy:spec :) since its a different platform from m

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-17 Thread Fernando Perez
> Make it print the message to STDERR instead of raising an error? Plus > add a > blurb like "You can ignore this warning if you didn't intend to run > specs" > > Aslak I like that too, +1 for me. > Obviously if your production code is explicitly calling rspec, you've > got bigger problems. As

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-16 Thread Andrew Premdas
If your using capistrano you could delete this file when deploying. 2009/1/16 Scott Taylor > > On Jan 16, 2009, at 2:38 PM, Fernando Perez wrote: > > Hi, >> >> I just run in the following problem when starting a Rails app on my >> production server: >> >> You have rspec rake tasks installed in

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-16 Thread Scott Taylor
On Jan 16, 2009, at 4:15 PM, Fernando Perez wrote: I would delete that rake task file (lib/rspec.rake) if you don't have rspec installed. Scott I run rspec on my dev machine, but obviously not on my production machine, what would be the nicest way to handle such scenario? At the top of rspe

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-16 Thread Mark Wilden
On Fri, Jan 16, 2009 at 3:19 PM, David Chelimsky wrote: > >> > >> I run rspec on my dev machine, but obviously not on my production > >> machine, what would be the nicest way to handle such scenario? At the > >> top of rspec.rake I could add a check on the environment > > > > That would get my vot

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-16 Thread Pat Maddox
On Fri, Jan 16, 2009 at 2:58 PM, David Chelimsky wrote: > On Fri, Jan 16, 2009 at 4:15 PM, aslak hellesoy > wrote: >> >> >> On Fri, Jan 16, 2009 at 10:05 PM, David Chelimsky >> wrote: >>> >>> On Fri, Jan 16, 2009 at 1:38 PM, Fernando Perez >>> wrote: >>> > Hi, >>> > >>> > I just run in the foll

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-16 Thread David Chelimsky
On Fri, Jan 16, 2009 at 4:15 PM, aslak hellesoy wrote: > > > On Fri, Jan 16, 2009 at 10:05 PM, David Chelimsky > wrote: >> >> On Fri, Jan 16, 2009 at 1:38 PM, Fernando Perez >> wrote: >> > Hi, >> > >> > I just run in the following problem when starting a Rails app on my >> > production server: >

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-16 Thread David Chelimsky
On Fri, Jan 16, 2009 at 5:06 PM, Mark Wilden wrote: > On Fri, Jan 16, 2009 at 1:15 PM, Fernando Perez > wrote: >> >> I run rspec on my dev machine, but obviously not on my production >> machine, what would be the nicest way to handle such scenario? At the >> top of rspec.rake I could add a check

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-16 Thread Mark Wilden
On Fri, Jan 16, 2009 at 1:15 PM, Fernando Perez wrote: > > I run rspec on my dev machine, but obviously not on my production > machine, what would be the nicest way to handle such scenario? At the > top of rspec.rake I could add a check on the environment That would get my vote. ///ark

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-16 Thread Fernando Perez
> > I would delete that rake task file (lib/rspec.rake) if you don't have > rspec installed. > > Scott I run rspec on my dev machine, but obviously not on my production machine, what would be the nicest way to handle such scenario? At the top of rspec.rake I could add a check on the environmen

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-16 Thread Stephen Eley
On Fri, Jan 16, 2009 at 2:38 PM, Fernando Perez wrote: > > A quick fix is to install rspec and rspec-rails gems on production > server, but I don't get why the app wants them installed. Because every Rake file in /lib gets loaded when you run Rake. That's your dependency problem; not the app its

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-16 Thread aslak hellesoy
On Fri, Jan 16, 2009 at 10:05 PM, David Chelimsky wrote: > On Fri, Jan 16, 2009 at 1:38 PM, Fernando Perez > wrote: > > Hi, > > > > I just run in the following problem when starting a Rails app on my > > production server: > > > > You have rspec rake tasks installed in > > /home/thomas/rails_ap

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-16 Thread David Chelimsky
On Fri, Jan 16, 2009 at 1:38 PM, Fernando Perez wrote: > Hi, > > I just run in the following problem when starting a Rails app on my > production server: > > You have rspec rake tasks installed in > /home/thomas/rails_apps/video_on_demand/lib/tasks/rspec.rake, > but rspec can not be found in ve

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-16 Thread Scott Taylor
On Jan 16, 2009, at 2:38 PM, Fernando Perez wrote: Hi, I just run in the following problem when starting a Rails app on my production server: You have rspec rake tasks installed in /home/thomas/rails_apps/video_on_demand/lib/tasks/rspec.rake, but rspec can not be found in vendor/gems, vend