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

Scott Taylor scott at railsnewbie.com
Sun Jan 18 18:24:17 EST 2009


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 <scott at railsnewbie.com 
> <mailto:scott at railsnewbie.com>>
>
>
>     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, vendor/plugins or
>         on the
>         system.
>
>
>         Obviously I don't want Rails to load anything related to
>         rspec, how can
>         I tell Rails that it should not care about RSpec on the production
>         environment?
>
>         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.
>
>
>     I would delete that rake task file (lib/rspec.rake) if you don't
>     have rspec installed.
>
>     Scott
>
>
>     _______________________________________________
>     rspec-users mailing list
>     rspec-users at rubyforge.org <mailto:rspec-users at rubyforge.org>
>     http://rubyforge.org/mailman/listinfo/rspec-users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list