EC-CUBE3の開発に利用することを想定したVagrantです。
CentOS 6.6(32bit)仮想マシンをセットアップします。 EC-CUBE3のディレクトリを仮想マシンからマウントするため、ホスト側で好きなエディタで開発が可能です。
- vagrant-omnibus
> vagrant plugin install vagrant-omnibus
- vagrant-cachier(推奨)
> vagrant plugin install vagrant-cachier
- Mac OS X 10.9.5 - VirtualBox 4.2.26 & Vagrant 1.6.5 & Git 1.9.3
- Mac OS X 10.10.2 - VirtualBox 4.3.26 & Vagrant 1.7.2 & Git 1.9.5
- Windows 7 - VirtualBox 4.3.20 & Vagrant 1.6.5 & Git 2.3.5
- PHP 5.3.3 or PHP 5.4.39
- Apache 2.2
- /ec-cubeをドキュメントルートに設定
- MySQL Client
- MySQL Server 5.1.73
- データベース 未作成
- Postgresql Server 8.4.20
- データベース eccube_db
- Postgresql Client
- git 1.7.1
このリポジトリをEC-CUBEのプロジェクトに追加します:
$ git submodule add [email protected]:EC-CUBE/eccube-vagrant.git ./vagrant
$ cd vagrant
$ vagrant up
ディレクトリ構成は以下のようになります:
ec-cube/
├── html/
├── src/
├── app/
~~~~~~
└── vagrant/
$ cd ec-cube/vagrant
$ vagrant up
$ vagrant ssh
$ sudo su -
# cd /ec-cube
# ./eccube_install.sh pgsql
- Web
- IPアドレス直接: http://192.168.33.10/
- PostgreSQL: pgsql:host=192.168.33.10;dbname=eccube_db (postgresユーザのpasswordはVagrantfileに設定されています)