Radiant provides two tasks to set the environment: production and development. So you can run the rake task like so:

rake production db:check:config

Sean

Paul Ingles wrote:
Sorry, meant to add an example of the output:

/usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:229:in 
`files_to_load?:
File or directory not found: RAILS_ENV=production
(RuntimeError)
from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:221:in 
`each?
from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:221:in 
`files_to_load?
from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:98:in 
`run_examples?
from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec.rb:21:in `run?
from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner.rb:191:in 
`register_at_exit_hook?
from /usr/bin/rake:19

Thanks again
On Friday, January 09, 2009, at 05:46AM, "Paul Ingles" <[email protected]> wrote:
Hi,

I'm trying to deploy Radiant to a host, and am getting errors during the 
deploy. Part of the deploy script runs a task to ensure the database and other 
environment stuff is setup (files in the right place etc.). This is triggered 
via. the db:check:config task which is executed by the Capistrano script.

It seems that the RSpec specs are being loaded (and thus triggering their at_exit hook to 
execute) no matter what task I run. As a result, it attempts to parse a list of files off 
the command line, which, will be the incorrect: "RAILS_ENV=production rake 
db:check:config".

I don't seem to remember seeing this behaviour with a boilerplate Rails app 
with RSpec specs. Incidentally I'm using RSpec 1.1.11.

I'll keep digging and see if I can see where this is happening (and submit a 
patch if I find anything), but was hoping somebody might have seen something 
similar and/or know where to look.

Thanks,
Paul
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to