Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
miya0001 committed Jan 31, 2017
2 parents 050efdc + 0f0c3db commit fa4e0fa
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Vagrant.require_version '>= 1.8.6'

Vagrant.configure(2) do |config|

vccw_version = '3.0.11';
vccw_version = '3.1.0';

_conf = YAML.load(
File.open(
Expand Down
36 changes: 35 additions & 1 deletion provision/playbooks/wordpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
command: |
wp core download
--path={{ path }}
--locale={{ vccw.lang }}
--version={{ vccw.version }}
--force
Expand Down Expand Up @@ -99,6 +98,12 @@
- name: Move `.gitignore`
command: "mv /tmp/.gitignore {{ path }}/.gitignore"

- name: Run `wp core language install`
command: |
wp core language install {{ vccw.lang }}
--path={{ path }}
--activate
# Install Plugins
- name: Run `wp plugin install`
command: |
Expand All @@ -107,6 +112,14 @@
--path={{ path }}
with_items: "{{ vccw.plugins | default([]) }}"

# Install wp-multibyte-patch
- name: Run `wp plugin install wp-multibyte-patch`
command: |
wp plugin install wp-multibyte-patch
--activate
--path={{ path }}
when: vccw.lang == 'ja'

# Check exsist Theme
- name: Run `wp theme is-installed`
command: |
Expand Down Expand Up @@ -156,6 +169,27 @@
--path={{ path }}
with_dict: "{{ vccw.options }}"

# Localization
- name: Get the timezone
command: |
wp eval "echo _x( '0', 'default GMT offset or timezone string' );"
--path={{ path }}
register: timezone
- name: Update timezone
command: |
wp option update timezone_string '{{ timezone.stdout }}'
--path={{ path }}
- name: Get the date format
command: |
wp eval "echo __( 'M jS Y' );"
--path={{ path }}
register: date_format
- name: Update date format
command: |
wp option update date_format '{{ date_format.stdout }}'
--path={{ path }}
# Setting Permalink
- name: Run `wp rewrite structure`
command: |
Expand Down

0 comments on commit fa4e0fa

Please sign in to comment.