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

Post on 09-Jan-2017

822 views 0 download

Transcript of 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

3

4

App Engine #とは

5

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

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

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

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

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

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

6

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…

10

11

12

事前準備

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

14

15

16

17

こんなん

18

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

- url: /static static_dir: /static

19

20

23

24