-
Notifications
You must be signed in to change notification settings - Fork 1
Distribution
uupaa edited this page May 30, 2017
·
5 revisions
WebApp/2 ベースの WebApplication (MyWebApp) を、開発環境以外の場所(動作確認環境)で動作確認するための手順について説明します。
-
MyWebApp をフォルダごと zip し、動作確認環境で展開します
- 自己署名証明書(
conf/webapp2-server.{crt|csr|key}
) も一緒にコピーして渡してください
- 自己署名証明書(
-
動作確認環境に Docker をインストールします
- Docker Community Edition for Mac から Docker.dmg をダウンロードしインストールします
-
必要に応じて Chrome Canary をインストールします
- Chrome Canary をインストールします
- Chrome Canary で chrome://flags/#enable-experimental-web-platform-features にアクセスし Experimental Web Platform features を 有効にする をクリックした後に 今すぐ再起動 で Chrome を再起動します
-
DockerImage を作成し、コンテナを起動します
-
動作確認環境で node.js(npm) が利用できる場合は、以下のコマンドを実行してください
cd MyWebApp npm run build:image npm start
-
node.js(npm) が利用できない場合は、以下の Docker コマンドを直接実行してください
cd MyWebApp docker build -t webapp2-nginx . docker run --name app -d -p 80:80 -p 443:443 -v $(pwd)/app:/usr/share/nginx/html/app:ro webapp2-nginx
-
-
Chrome Canary を起動し、 https://localhost/app にアクセスします。
-
CORS アクセスが必要な場合は、一度全ての Chrome Canary を終了させ、以下のコマンドで Chrome Canary を起動してから https://localhost/app にアクセスしてください
open -a Google\ Chrome\ Canary --args --allow-cross-origin-auth-prompt --disable-web-security --user-data-dir ~/ --flag-switches-begin --enable-experimental-web-platform-features --flag-switches-end
-
- Install and Setup
- Devlopment (TODO)
- Distribution
- Deployment (TODO)
- Application Structure
- Idioms
- Troubleshooting
- Keywords