VCCWを用いてwordpressを開発しようとしていますが、
データベースに接続することができずに苦戦しています
こちらを試してみてもできませんでした
Movefileとsite.ymlです
# Movefile local: vhost: "http://suzuhiro.com" wordpress_path: "/var/www/wordpress" database: name: "wordpress" user: "wordpress" password: "wordpress" host: "localhost" charset: "utf8" # paths: # you can customize wordpress internal paths # wp_content: "wp-content" # uploads: "wp-content/uploads" # plugins: "wp-content/plugins" # mu_plugins: "wp-content/mu-plugins" # themes: "wp-content/themes" # languages: "wp-content/languages" production: vhost: "http://example.com" wordpress_path: "/var/www/your_site" # use an absolute path here database: name: "database_name" user: "user" password: "password" host: "host" port: "3308" # Use just in case you have exotic server config mysqldump_options: "--max_allowed_packet=50MB" # Only available if using SSH exclude: - ".git/" - ".gitignore" - ".sass-cache/" - "bin/" - "tmp/*" - "Gemfile*" - "Movefile" - "wp-config.php" - "wp-content/*.sql" ssh: host: "host" user: "user" port: 22 rsync_options: --verbose #site.yml wp_box: vccw-team/xenial64 memory: 1024 cpus: 1 # # Network Settings # hostname: suzuhiro.com ip: 192.168.33.10 # # WordPress Settings # version: 4.6.4 lang: ja title: Welcome to the VCCW multisite: false rewrite_structure: /archives/%post_id% # # WordPress Path # 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: suzuhiro@example.com # # WordPress Database # db_prefix: wp_ db_host: localhost db_name: wordpress db_user: wordpress db_pass: wordpress # # WordPress Default Plugins # Plugin's slug or url to the plugin's slug. # plugins: [] # # WordPress Default Theme # Theme's slug or url to the theme's .zip. # theme: '' # # WordPress Options # options: blogdescription: Hello VCCW. # # WordPress Multisite Options # multisite_options: {} # # The values of wp-config.php # force_ssl_admin: false wp_debug: true savequeries: false # # Addtional PHP code in the wp-config.php # extra_wp_config: | // Addtional PHP code in the wp-config.php // These lines are inserted by VCCW. // You can place addtional PHP code here! # # Theme unit testing # theme_unit_test: false theme_unit_test_uri: https://raw.githubusercontent.com/WPTRT/theme-unit-test/master/themeunittestdata.wordpress.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 # # RubyGems # ruby_gems: - bundler - wordmove mailcatcher: true wp_i18n_tools: true # # NPM modules # npms: [] # # composer # composers: - phpunit/phpunit:5.6 - squizlabs/php_codesniffer:* - wp-coding-standards/wpcs:* # - phpmd/phpmd:* # - sebastian/phpcpd:* # - phploc/phploc:* # - phing/phing:* # # wp-cli package commands # wp_cli_packages: - vccw/wp-cli-scaffold-movefile:@stable # # Linked Clone for Vagrant v1.8 # linked_clone: false # # Advanced Settings # # # PHP ini values # php_ini: date.timezone: UTC default_charset: UTF-8 mbstring.language: neutral mbstring.internal_encoding: UTF-8 post_max_size: 1024M # Same with VVV short_open_tag: Off session.save_path: /tmp upload_max_filesize: 1024M # Same with VVV xdebug.remote_enable: true xdebug.remote_host: 127.0.0.1 xdebug.remote_port: 9000 xdebug.profiler_enable: true xdebug.idekey: VCCWDEBUG xdebug.remote_connect_back: true xdebug.remote_autostart: true synced_folder: wordpress document_root: /var/www/html
データベースを接続するにあたって、先にデータベースを作成しておく必要があるのでしょうか?
あと、データベースのパスも指定する必要があるのでしょうか?
よろしくお願いします。
あなたの回答
tips
プレビュー