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
HerokuでPHPとNodejsの併用
Search
果物リン
May 22, 2017
Technology
0
440
HerokuでPHPとNodejsの併用
果物リン
May 22, 2017
Tweet
Share
More Decks by 果物リン
See All by 果物リン
Electron+Vue+Swift=真のデスクトップアプリ / How to create "Really" desktop app using Electron
fruitriin
0
41
ある日オレオレフレームワークを作りたくなったぞ/Want to Create Oreore Framework
fruitriin
1
87
fishとfzfはじめて 豊かになりました / fish and fzf is good
fruitriin
1
780
Chrome Devtools使いこなしたい/I want to master devtool
fruitriin
3
1.5k
Event Stage - 真面目に作ったけど 全くウケなくてクソだったアプリ/I made new service but they say shit
fruitriin
0
160
読み上げチャット+映像配信サービス作ってるけど…/I develop Text-to-Speach chat and broadcast Savice but...
fruitriin
0
120
とある自社開発の苦楽の軌跡/Trajectory of a Certain In-house Development Effort
fruitriin
1
230
動画再生速度を変更するコンポーネントを作ろうとして諦めた話/talk about give up to create video with playback-rate controller
fruitriin
6
900
Soft Skillsから伝えたい新人時代の個人開発技術選定/Selecting Stack for Personal Development as a from Soft Skills
fruitriin
2
350
Other Decks in Technology
See All in Technology
AWSを活用したIoTにおけるセキュリティ対策のご紹介
kwskyk
0
350
IAMのマニアックな話2025
nrinetcom
PRO
4
780
Active Directory攻防
cryptopeg
PRO
8
5.5k
サイト信頼性エンジニアリングとAmazon Web Services / SRE and AWS
ymotongpoo
7
1.6k
スキルだけでは満たせない、 “組織全体に”なじむオンボーディング/Onboarding that fits “throughout the organization” and cannot be satisfied by skills alone
bitkey
0
180
php-conference-nagoya-2025
fuwasegu
0
150
遷移の高速化 ヤフートップの試行錯誤
narirou
6
1.2k
株式会社Awarefy(アウェアファイ)会社説明資料 / Awarefy-Company-Deck
awarefy
3
11k
Cracking the Coding Interview 6th Edition
gdplabs
14
28k
Autonomous Database Serverless 技術詳細 / adb-s_technical_detail_jp
oracle4engineer
PRO
17
45k
アジャイルな開発チームでテスト戦略の話は誰がする? / Who Talks About Test Strategy?
ak1210
1
600
Iceberg Meetup Japan #1 : Iceberg and Databricks
databricksjapan
0
370
Featured
See All Featured
The Invisible Side of Design
smashingmag
299
50k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.6k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
46
2.3k
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.5k
Optimising Largest Contentful Paint
csswizardry
34
3.1k
Gamification - CAS2011
davidbonilla
80
5.2k
How STYLIGHT went responsive
nonsquared
98
5.4k
Code Reviewing Like a Champion
maltzj
521
39k
Optimizing for Happiness
mojombo
376
70k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.3k
Why You Should Never Use an ORM
jnunemaker
PRO
55
9.2k
Transcript
HerokuͰPHPͱNode.jsͷซ༻ 2017.5.22 PHP BLT ՌϦϯ@FruitRiin
ࣗݾհ ՌϦϯ ࣄͰPHPerʢ̎ʣ ֶੜͷࠒ͔ΒझຯͰ͋Ε͜Ε PHP BLT 2ճʢॳొஃʂʣ ࣮ࠓੜ…
TwitterͰ;͊΅࣌ؒॱ͕Έ͍ͨʂ
͡Ό͋࡞Ζ͏ʂ
;͊΅࣌ؒΛAPI͕ฦ͞ͳ͍ʂ
UserStreamΛ͑ ͳΜͱ͔ͳΔ͔ʂ
͍͍Ͷʂ ;͊΅௨ DB ݟΕΔʂ
Herokuॳઓ σʔλϑϩʔతʹNode.jsͷ෦͔Β࣮։࢝ ͳΜͱͳͦ͘ΕͬΆ͍࣮Ͱ͖ͨʂ ࣍PHPΛ͍ͨ͠ɻˡ̎͘Β͍ϋϚΔ
HerokuطଘProjectʹPHPՃ HerokuͷDashbordͷ Settingsʹ͋ΔBuildpacksʹ PHPΛՃ composer.jsonΛ༻ҙͯ͠ composer update ProcfileʹҰखؒ
PHPͱNodeΛWebͱWorkerͰ Procfile ฤूʢͳ͚Ε࡞Δʣ commit ͯ͠ push͢ΔͱNodeͱPHP͕Ϗϧυˍىಈʂ
·ͱΊ BuildpacksͷՃHerokuͷμογϡϘʔυ͔Βʢॏཁʣ ˢҎલͰ͖ͳ͔ͬͨΒ͔ͯͦͬͪ͘͠Γͻ͔͔ͬΔ https://devcenter.heroku.com/articles/buildpacks ↑ͷPHPͷDocumentationΛݟΕશ෦ॻ͍ͯ͋Δorz
͓·͚ɿਐḿ