Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP7+Laravel5.3 on Google App Engine

Takumi Yoshida
December 09, 2016

PHP7+Laravel5.3 on Google App Engine

PHP7+Laravel5.3 on Google App Engine
Using Google app Engine Flexible Environment

Takumi Yoshida

December 09, 2016
Tweet

More Decks by Takumi Yoshida

Other Decks in Technology

Transcript

  1. Google App Engine is… • Paas • Language: Python, Java7,

    PHP, Go • Auto Scaling • CloudSQL,BigData ….
  2. • “App Engine runs your PHP web application using a

    PHP 5.5.34 interpreter” PHP Version IUUQTDMPVEHPPHMFDPNBQQFOHJOFEPDTQIQSVOUJNF
  3. Laravel5.3 “However, if you are not using Homestead, you will

    need to make sure your server meets the following requirements: PHP >= 5.6.4 OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension XML PHP Extension “ IUUQTMBSBWFMDPNEPDT
  4. App Engine flexible environment • Google Compute Engine ϕʔε •

    Auto Scaling • ࣮ߦ؀ڥͷఆ͕ٛͰ͖Δ • Docker Base
  5. Step0. ४උ • Project࡞੒ • https://console.cloud.google.com/appengine? src=ac • Cloud SdkΠϯετʔϧ

    • https://cloud.google.com/sdk/ • gcloud init • ࣗ෼ͷΞΧ΢ϯτ/projectͰೝূ͓ͯ͘͠
  6. Step4. gcloud app deploy • gcloud app deploy • GAE্ʹσϓϩΠͰ͖Δ

    • Dockerfile͔Βbuildͯ͠ʙͬͯײ͡ͳͷͰ ͔ͳΓ͔͔࣌ؒΔ
  7. Weak point • App engineʹൺ΂ͯߴ͍ 
 1ϲ݄Ͱ໿5000ԁ͙Β͍ • App engineͱ͍͍࣮࣭ͭͭCompute

    Engine • ComputeEngineͷํ͕͍҆ • ෛՙߟ͑ͳ͚Ε͹n1-standard/ Preemptible Ͱ
 $8ҎԼ?