Skip to content

sumlibe/ACS_WebAppTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACS_WebAppTest

<事前準備>

VirtualboxVagrantは事前にインストールしておいてください。

Vagrantプラグインのインストール(インストール済の場合は不要)

vagrant plugin listでインストール済のプラグインを確認できます。

$ vagrant plugin install vagrant-omnibus

Bundlerのインストール(インストール済の場合は不要)

gem list --localでインストール済のプラグインを確認できます。

$ gem install bundler

仮想マシン環境の取得(初回のみ)

$ git clone git@github.com:sumlibe/ACS_WebAppTest.git --recursive
$ cd ACS_WebAppTest

Gemのインストール(初回のみ)

Gemfileに登録しているGem(Chef, knife-solo, berkshelf)がインストールされます。

$ bundle install --path vendor/bundle

サードパーティcookbookの取得(初回のみ)

Berksfileに登録しているCookbook(依存関係を含む)がインストールされます。

$ bundle exec berks vendor cookbooks

<動作確認>

仮想マシン環境の起動

$ vagrant up

仮想マシンの起動確認

$ vagrant ssh frontend_server
$ vagrant ssh backend_server

サーバーの動作確認

フロントエンドサーバーの動作確認

FrontEndServer(http://192.168.10.10)アクセスしてFuelPHPのトップページを表示

フロントエンドサーバーの動作確認(WebAPIの呼び出し)
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のトップページを表示

バックエンドサーバーの動作確認(WebAPIの呼び出し)
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

FuelPHPからWebAPI呼び出しの動作確認(仮想マシンにログインした状態)

$ cd /vagrant_mysite/webapi
$ php oil r webapi

<その他>

WebAPIの呼び出しテストツール

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors