下記に記述している問題は解決したのですが、データベースが引き継がれない状態になりました。
データベースの接頭辞を合わせて、wordpressフォルダを削除して再度pullしてみましたが状況が変わりません。
ローカルの開発環境にアクセスすると、wordpressの言語選択画面からの設定になります。
解決方法をご存知でしょうか。よろしくお願いいたします。
site.yml、Movefileを設定した後
wordmove pull -all
すると、正常にリモートからpullできるのですが、データベースだけ引っ張ってくることができません。
Movefileの設定が間違っているのかと思いましたが、設定は間違いないと思います。
リモートのwp-config.php内のデータベースの記述と合わせています。
pullしてきた状態で、ローカルのサーバーに接続するとワードプレスのデータベース設定画面となります。
これは、Movefileのexcludeの項目にwp-configが含まれているからかと思いexcludeから除外したところ
データベースの接続確立エラーとなりました。
こちらの現象の対処法をご存知の方はいらっしゃいますでしょうか?
ちなみに、prefixの接頭辞を合わせて、一度vagrant up された際に生成されるフォルダを削除しなおしてからpullするなども試しました。
以下、設定ファイルです。
Movefile
local: vhost: "ローカルの開発用URLを入れました" wordpress_path: "/var/www/wordpress" database: name: "wordpress" user: "wordpress" password: "wordpress" host: "localhost" staging: vhost: "リモートのURLを入れました" wordpress_path: "wordpressフォルダへの絶対パス" # use an absolute path here database: name: "データベース名" user: "ユーザー名" password: "データベース接続パスワード" host: "mysqlxxx.db.sakura.ne.jp さくらサーバを使用しています。" charset: "utf8" exclude: - ".git/" - ".sass-cache/" - "bin/" - "tmp/*" - "Gemfile*" - "Movefile" - "wp-content/*.sql" 試しに、wp-configを除外してみました。 # paths: # you can customize wordpress internal paths # wp_content: "wp-content" # uploads: "wp-content/uploads" # plugins: "wp-content/plugins" # themes: "wp-content/themes" # languages: "wp-content/languages" # themes: "wp-content/themes" ssh: host: "ユーザー名.sakura.ne.jp" user: "ユーザー名" password: "パスワード" # password is optional, will use public keys if available. port: 22 # Port is optional rsync_options: "--verbose" # Additional rsync options, optional # gateway: # Gateway is optional # host: "host" # user: "user" # password: "password" # password is optional, will use public keys if available. # ftp: # user: "user" # password: "password" # host: "host" # passive: true # production: # multiple environments can be specified # [...]
site.yml
# encoding: utf-8 # vim: ft=ruby expandtab shiftwidth=2 tabstop=2 # # General Settings # wp_box: miya0001/vccw chef_cookbook_path: ./provision # # Virtual Machine Settings # memory: 512 cpus: 1 # # Network Settings # hostname: 開発環境URL ip: 192.168.33.10 sync_folder: 'www/wordpress' # # WordPress Settings # version: latest lang: ja title: Welcome to the VCCW multisite: false rewrite_structure: /archives/%post_id% # # WordPress Path # document_root: '/var/www/wordpress' wp_siteurl: '' # Path to the WP_SITEURL like "wp" wp_home: '' # Path to the WP_HOME like "wp" # # WordPress User # admin_user: admin admin_pass: admin admin_email: vccw@example.com # # WordPress Database # db_prefix: データベースの接頭辞を合わせる db_host: localhost # # WordPress Default Plugins # Plugin's slug or url to the plugin's slug. # plugins: - dynamic-hostname - wp-total-hacks - tinymce-templates # # WordPress Default Theme # Theme's slug or url to the theme's .zip. # theme: '' # # WordPress Options # options: blogdescription: Hello VCCW. # # The values of wp-config.php # force_ssl_admin: false wp_debug: true savequeries: false # # Theme unit testing # theme_unit_test: false theme_unit_test_uri: https://wpcom-themes.svn.automattic.com/demo/theme-unit-test-data.xml # theme_unit_test_uri: https://raw.githubusercontent.com/jawordpressorg/theme-test-data-ja/master/wordpress-theme-test-date-ja.xml # # DB will be reset when provision # reset_db_on_provision: true # # Are you hurrying a lot? # disable_vccw_cookbook: false # # User and Group # user: vagrant group: vagrant # # phpenv # php_version: default # # Linked Clone for Vagrant v1.8 # linked_clone: false
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。