Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
better handling for radiant rails environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed May 22, 2011
1 parent edd2d5d commit ee3b69d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions radiant/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
default['radiant']['branch'] = "HEAD"
default['radiant']['migrate'] = false
default['radiant']['migrate_command'] = "rake db:migrate"
default['radiant']['revision'] = "HEAD"
default['radiant']['action'] = "nothing"
default['radiant']['edge'] = false
default['radiant']['db_bootstrap'] = <<EOS
yes | rake #{node.chef_environment} db:bootstrap \
default['radiant']['revision'] = "HEAD"
default['radiant']['action'] = "nothing"
default['radiant']['edge'] = false
default['radiant']['environment'] = node.chef_environment =~ /_default/ ? "production" : node.chef_environment
default['radiant']['db_bootstrap'] = <<EOS
yes | rake #{node['radiant']['environment']} db:bootstrap \
ADMIN_NAME=Administrator \
ADMIN_USERNAME=admin \
ADMIN_PASSWORD=radiant \
Expand Down
2 changes: 1 addition & 1 deletion radiant/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@
template "#{appname}.conf.erb"
server_name "#{appname}.#{node[:domain]}"
server_aliases [ "#{appname}", node[:hostname] ]
rails_env node.chef_environment
rails_env node['radiant']['environment']
end

0 comments on commit ee3b69d

Please sign in to comment.