LoginSignup
4
3

More than 5 years have passed since last update.

VCCWでWordPressのローカル開発環境を構築

Last updated at Posted at 2016-02-29

VCCW

まずはこれにそって進める。(カスタマイズなんかも下のほうに記載されてる)
http://vccw.cc/

miya0001さんが作った
Github:https://github.com/naokomc/vagrant-chef-centos-wordpress/blob/master/README-ja.md

VCCWの主要な中身

LAMP環境
WP-CLI
Node.js(grunt、gulp)
git/Subversion
Sass
WordMove

こんなエラーが起きた!!少しハマった。

An error occurred in the underlying SSH library that Vagrant uses.
The error message is shown below. In many cases, errors from this
library are caused by ssh-agent issues. Try disabling your SSH
agent or removing some keys and try again.

If the problem persists, please report a bug to the net-ssh project.

timeout during server version negotiating

以下のVagrantfileのコードをコメントアウトする。

vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']

コメントアウトしたら、VirtualBoxで起動しちゃってるやつを一旦削除して、もう一回 vagrant up

少し時間がかかるけど、完了したら http://192.168.33.10/ にアクセス。
http://192.168.33.10/wp-admin/ で管理画面にログインできる。
Username: admin
Password: admin

参考:http://hacknote.jp/archives/16835/

デプロイ手順はこんな感じ

vccw環境の用意
WordMove設定ファイルの用意(FTPの接続情報、本番環境のDB接続情報などの設定)
ローカル環境へプル
テーマ/プラグイン開発
本番環境へデプロイpush

コマンド

VirtualBoxからGUIてきに操作できるけど、ターミナルで操作する場合は vagrant -h で調べればOK。

日本語化

Vagrantfileと同じディレクトリに site.yml というファイルを設置して以下のように記述。

lang: ja

参考:https://firegoby.jp/archives/6109

参考

http://www.slideshare.net/akinoritateyama/wordbenchvagrant?next_slideshow=1
http://codechord.com/2015/05/vccw-wordmove-wordpress/
http://qiita.com/naru0504/items/58011181f2c271808c7f
http://xxxx7.com/2015/02/23/100002

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3