Skip to content

Commit

Permalink
add xdebug and fix bug installing theme
Browse files Browse the repository at this point in the history
  • Loading branch information
miya0001 committed Jul 19, 2015
1 parent 1c95ad8 commit 1d17761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Vagrant.configure(2) do |config|
:listen_ports => ['80', '443']
},
:php => {
:packages => %w(php php-cli php-devel php-mbstring php-gd php-xml php-mysql),
:packages => %w(php php-cli php-devel php-mbstring php-gd php-xml php-mysql php-pecl-xdebug),
:directives => {
'default_charset' => 'UTF-8',
'mbstring.language' => 'neutral',
Expand Down
8 changes: 1 addition & 7 deletions provision/site-cookbooks/wpcli/recipes/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,7 @@
user node[:wpcli][:user]
group node[:wpcli][:group]
cwd File.join(node[:wpcli][:wp_docroot], node[:wpcli][:wp_siteurl])
code "WP_CLI_CONFIG_PATH=#{Shellwords.shellescape(node[:wpcli][:config_path])} wp theme install #{Shellwords.shellescape(node[:wpcli][:default_theme])}"
end
bash "WordPress #{node[:wpcli][:default_theme]} activate" do
user node[:wpcli][:user]
group node[:wpcli][:group]
cwd File.join(node[:wpcli][:wp_docroot], node[:wpcli][:wp_siteurl])
code "WP_CLI_CONFIG_PATH=#{Shellwords.shellescape(node[:wpcli][:config_path])} wp theme activate #{File.basename(Shellwords.shellescape(node[:wpcli][:default_theme])).sub(/\..*$/, '')}"
code "WP_CLI_CONFIG_PATH=#{Shellwords.shellescape(node[:wpcli][:config_path])} wp theme install #{Shellwords.shellescape(node[:wpcli][:default_theme])} --activate"
end
end

Expand Down

0 comments on commit 1d17761

Please sign in to comment.