Skip to content

Commit 2a23a3f

Browse files
committed
No longer require :staging_domain to be set
1 parent 5da9dc4 commit 2a23a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
end
6969
desc "Sets the database credentials (and other settings) in wp-config.php"
7070
task :make_config do
71-
set :staging_domain, '' if staging_domain.nil?
71+
set :staging_domain, '' unless defined? staging_domain
7272
{:'%%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|
7373
run "sed -i 's/#{k}/#{v}/' #{release_path}/wp-config.php", :roles => :web
7474
end

0 commit comments

Comments
 (0)