Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PHP7+Laravel5.3 on Google App Engine
Search
Takumi Yoshida
December 09, 2016
Technology
0
1.2k
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
Share
More Decks by Takumi Yoshida
See All by Takumi Yoshida
golangで作るslackbot
ytakky2014
0
170
GKEでは StackDriver Loggingに どうやってログを送っているか
ytakky2014
3
5.4k
Auralization of Tech News +Change in technology interest for my 4 years.
ytakky2014
0
120
Webメディアでのdataflow活用
ytakky2014
1
550
睡眠をエンジニアリングする
ytakky2014
0
270
DevOps In All About
ytakky2014
0
3.6k
Other Decks in Technology
See All in Technology
ハッカソンから社内プロダクトへ AIエージェント ko☆shi 開発で学んだ4つの重要要素
leveragestech
0
530
2025-12-27 Claude CodeでPRレビュー対応を効率化する@機械学習社会実装勉強会第54回
nakamasato
4
1.4k
AI: The stuff that nobody shows you
jnunemaker
PRO
1
130
#22 CA × atmaCup 3rd 1st Place Solution
yumizu
1
110
善意の活動は、なぜ続かなくなるのか ーふりかえりが"構造を変える判断"になった半年間ー
matsukurou
0
170
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1k
2025年のデザインシステムとAI 活用を振り返る
leveragestech
0
660
re:Invent2025 セッションレポ ~Spec-driven development with Kiro~
nrinetcom
PRO
2
170
「駆動」って言葉、なんかカッコイイ_Mitz
comucal
PRO
0
130
なぜ あなたはそんなに re:Invent に行くのか?
miu_crescent
PRO
0
250
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
10k
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
5
59k
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
670
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
34
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
2
270
Ethics towards AI in product and experience design
skipperchong
1
150
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
360
For a Future-Friendly Web
brad_frost
180
10k
Building AI with AI
inesmontani
PRO
1
600
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
76
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
220
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
220
Transcript
PHP7+Laravel5.3 on Google App Engine y.takky2014
Google App Engine is… • Paas • Language: Python, Java7,
PHP, Go • Auto Scaling • CloudSQL,BigData ….
• “App Engine runs your PHP web application using a
PHP 5.5.34 interpreter” PHP Version IUUQTDMPVEHPPHMFDPNBQQFOHJOFEPDTQIQSVOUJNF
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
App Engine flexible environment • Google Compute Engine ϕʔε •
Auto Scaling • ࣮ߦڥͷఆ͕ٛͰ͖Δ • Docker Base
Step0. ४උ • Project࡞ • https://console.cloud.google.com/appengine? src=ac • Cloud SdkΠϯετʔϧ
• https://cloud.google.com/sdk/ • gcloud init • ࣗͷΞΧϯτ/projectͰೝূ͓ͯ͘͠
Step1. Laravel5.3ͷ४උ • https://github.com/laravel/laravel/releases • 5.3.16ΛDLͯ͠దͳσΟϨΫτϦʹҠಈ • ࠓճ ~/laravel5.3_on_appengine/appԼʹ Ҡಈ
• local͕php7Ͱ͋Εcomposer updateͱenv ४උ͓ͯ͘͠
Step2 make docker file • Dockerhubʹ͋ΔPHP7+ApacheΛ༻ • https://hub.docker.com/_/php/ • apacheͷઃఆϑΝΠϧͱLaravel5.3Λ
ADD͢Δ
Step3. make app.yaml • https://cloud.google.com/appengine/docs/ flexible/custom-runtimes/quickstart • ͦΜͳʹॻ͘͜ͱͳ͍
Step4. gcloud app deploy • gcloud app deploy • GAE্ʹσϓϩΠͰ͖Δ
• Dockerfile͔Βbuildͯ͠ʙͬͯײ͡ͳͷͰ ͔ͳΓ͔͔࣌ؒΔ
gcloud app browse • σϑΥϧτͷϒϥβͰ։͚Δ
Weak point • App engineʹൺͯߴ͍ 1ϲ݄Ͱ5000ԁ͙Β͍ • App engineͱ͍͍࣮࣭ͭͭCompute
Engine • ComputeEngineͷํ͕͍҆ • ෛՙߟ͑ͳ͚Εn1-standard/ Preemptible Ͱ $8ҎԼ?
Conclusion • GKE΄Ͳ͘͠ͳ͘DockerΛ͑Δɻͱ͍͏ ͍͍ • ࠓճ࡞ͬͨͷҎԼ • https://github.com/ytakky2014/ laravel5.3_on_appengine