※Virtualbox、Vagrantは事前にインストールしておいてください。
vagrant plugin listでインストール済のプラグインを確認できます。
$ vagrant plugin install vagrant-omnibus
gem list --localでインストール済のプラグインを確認できます。
$ gem install bundler
$ git clone git@github.com:sumlibe/ACS_WebAppTest.git --recursive
$ cd ACS_WebAppTest
Gemfileに登録しているGem(Chef, knife-solo, berkshelf)がインストールされます。
$ bundle install --path vendor/bundle
Berksfileに登録しているCookbook(依存関係を含む)がインストールされます。
$ bundle exec berks vendor cookbooks
$ vagrant up
$ vagrant ssh frontend_server
$ vagrant ssh backend_server
FrontEndServer(http://192.168.10.10)アクセスしてFuelPHPのトップページを表示
curl http://192.168.10.10/memo/write -d "memo=FrontEnd_Server_test1"
curl http://192.168.10.10/memo/write -d "memo=FrontEnd_Server_test2"
curl http://192.168.10.10/memo/write -d "memo=FrontEnd_Server_test3"
curl http://192.168.10.10/memo/read
BackEndServer(http://192.168.10.11)にアクセスしてFuelPHPのトップページを表示
curl http://192.168.10.11/memo/write -d "memo=BackEnd_Server_test1"
curl http://192.168.10.11/memo/write -d "memo=BackEnd_Server_test2"
curl http://192.168.10.11/memo/write -d "memo=BackEnd_Server_test3"
curl http://192.168.10.11/memo/read
curl http://192.168.10.10/memo/read_backend
$ cd /vagrant_mysite/webapi
$ php oil r webapi
- Advanced REST client(Chromeの拡張機能)