Commit d60c8266 authored by Yoshiharu Hirose's avatar Yoshiharu Hirose

共通の説明

parent 3db8e841
......@@ -2,3 +2,88 @@
PHPフレームワーク動作確認環境
========================================================================
準備 (prerequisite)
------------------------------------------------------------------------
1. VirtualBox をインストール
https://www.virtualbox.org/
2. Vagrant をインストール
https://www.vagrantup.com/
3. 以下の環境変数に Proxy サーバを設定しておく
HTTP_PROXY http://proxy2:8080
HTTPS_PROXY http://proxy2:8080
4. vagrant-proxyconf プラグインをインストール
コマンドプロンプトから
> vagrant plugin install vagrant-proxyconf
仮想サーバの基本操作
------------------------------------------------------------------------
各フォルダ配下でコマンドプロンプトから以下のコマンドを実行する。仮想サーバの状態は Oracle VM VirtualBox マネージャから確認することができる。
### 起動
※初回はVMイメージのダウンロードおよびプロビジョニング処理のため、時間がかかる。
> vagrant up
### 停止
> vagrant halt
### 破棄
> vagrant destroy
仮想サーバにログインする
------------------------------------------------------------------------
### 方法1) コマンドプロンプトから
Cygwin や Git Bash などコマンドラインのSSHクライアントがインストールされている場合、vagrant/ フォルダ配下から以下を実行する。
$ vagrant ssh
### 方法2) TeraTerm, RLogin などのターミナルアプリから
以下の情報で接続することができます。
| 設定項目 | 設定値 |
|:-------------|:---------------------------------------------------------|
| 接続先 | localhost:2222 |
| ユーザ名 | vagrant |
| 認証方法 | 公開鍵認証 |
| 秘密鍵 | vagrant/.vagrant/machines/default/virtualbox/private_key |
| パスフレーズ | なし |
共通情報
------------------------------------------------------------------------
### 確認用URL
* http://localhost:9000
### MySQL
| 設定項目 | 設定値 |
|:-------------|:-------|
| データベース | testdb |
| ユーザ名 | root |
| パスワード | (なし) |
## ディレクトリ構成
┬ puppet/ テスト環境のデプロイ設定
│ ├ manifest/ Puppe設定ファイル
│ └ templates/ サーバ設定ファイル
│
├ www/
│ ├ site/ Webサイトプロジェクト
│ └ (その他) フレームワーク本体など
└ Vagrantfile Vagrant設定ファイル
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment