Permalink
Browse files

No longer require :staging_domain to be set

  • Loading branch information...
1 parent 5da9dc4 commit 2a23a3fcd6c9f09f4598cf754fa36f723e7f368b @markjaquith committed Oct 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tasks.rb
View
@@ -68,7 +68,7 @@
end
desc "Sets the database credentials (and other settings) in wp-config.php"
task :make_config do
- set :staging_domain, '' if staging_domain.nil?
+ set :staging_domain, '' unless defined? staging_domain
{:'%%WP_STAGING_DOMAIN%%' => staging_domain, :'%%WP_STAGE%%' => stage, :'%%DB_NAME%%' => wpdb[stage][:name], :'%%DB_USER%%' => wpdb[stage][:user], :'%%DB_PASSWORD%%' => wpdb[stage][:password], :'%%DB_HOST%%' => wpdb[stage][:host]}.each do |k,v|
run "sed -i 's/#{k}/#{v}/' #{release_path}/wp-config.php", :roles => :web
end

0 comments on commit 2a23a3f

Please sign in to comment.