Google App Engine for PHPとそのローカル開発環境について

25
Hpphmf!Bqq!Fohjof!gps!QIQ ؊پؾڋڀ桬䥛䞑⭤؇נ cz! Nbtbtij!Ufsvj!bu!Tbqqpsp/qiq!$3

Transcript of Google App Engine for PHPとそのローカル開発環境について

Page 1: Google App Engine for PHPとそのローカル開発環境について
Page 2: Google App Engine for PHPとそのローカル開発環境について

Masashi Terui @ marcy_teruiI’m a developer and architect in the operators company (JIG-SAW Inc.)

I'm the organizer on the some of events with the theme of "Infrastructure as Code”. I’m a member of JAWS-UG and GCPUG (Coming soon!)

I’m around 30 years old. I’m a father of my son and daughter.

ABOUT ME

2

Page 3: Google App Engine for PHPとそのローカル開発環境について

3

Page 4: Google App Engine for PHPとそのローカル開発環境について

4

Page 5: Google App Engine for PHPとそのローカル開発環境について

App Engine #とは

5

Google App Engine は、スケーラブルなウェブ アプリケーションやモバイル バックエンドを構築する

ためのプラットフォームです。大半のアプリに共通する ビルトイン サービスや API を提供します。

App Engine は、トラフィックが増加するとアプリを自動的にスケールアップ、減少すると自動的にス

ケールダウンさせます。料金はリソースを使った分だけ。コードをアップロードした後は、Google が

アプリの可用性を管理します。プロビジョニングやメンテナンスを行うサーバーは必要ありません。

- Google Cloud Platform公式ページ(https://cloud.google.com/appengine/?hl=ja) より抜粋 -

Page 6: Google App Engine for PHPとそのローカル開発環境について

6

Page 9: Google App Engine for PHPとそのローカル開発環境について

Services

9

NoSQL (Cloud Datastore)

RDB (Cloud SQL) User authentication API Memcache, Edge Cache Task queue

Full text search

Blob store Image store + resize API Security Scanner etc…

Page 10: Google App Engine for PHPとそのローカル開発環境について

10

Page 11: Google App Engine for PHPとそのローカル開発環境について

11

Page 12: Google App Engine for PHPとそのローカル開発環境について

12

Page 13: Google App Engine for PHPとそのローカル開発環境について

事前準備

13

アカウントを作る(当たり前w)

プロジェクトを作る

Google App Engine SDK for PHPのインストール https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_PHP Cloud SQLの構築(使う場合)https://cloud.google.com/sql/docs/getting-started?hl=ja

Page 14: Google App Engine for PHPとそのローカル開発環境について

14

Page 15: Google App Engine for PHPとそのローカル開発環境について

15

Page 16: Google App Engine for PHPとそのローカル開発環境について

16

Page 17: Google App Engine for PHPとそのローカル開発環境について

17

Page 18: Google App Engine for PHPとそのローカル開発環境について

こんなん

18

handlers: - url: /clear_cache script: clear_cache.php login: admin

- url: /static static_dir: /static

Page 19: Google App Engine for PHPとそのローカル開発環境について

19

Page 20: Google App Engine for PHPとそのローカル開発環境について

20

Page 23: Google App Engine for PHPとそのローカル開発環境について

23

Page 24: Google App Engine for PHPとそのローカル開発環境について

24

Page 25: Google App Engine for PHPとそのローカル開発環境について