Enviar pesquisa
Carregar
PHPでもこわくないHeroku(PHPカンファレンス福岡2015)
•
5 gostaram
•
5,542 visualizações
Hiroyuki Yamaoka
Seguir
PHPカンファレンス福岡2015で「PHPでこわくないHeroku」と題して発表しました
Leia menos
Leia mais
Tecnologia
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 30
Baixar agora
Baixar para ler offline
Recomendados
とある事業の脱レガシー
とある事業の脱レガシー
Hisateru Tanaka
CakePHP3ウォークスルー
CakePHP3ウォークスルー
Tomoki Hasegawa
behatエクステンションの作り方
behatエクステンションの作り方
Ryo Tomidokoro
PHPCON fukuoka 2015 CodeIgniter update
PHPCON fukuoka 2015 CodeIgniter update
Takako Miyagawa
phpspecで始めるBDD
phpspecで始めるBDD
Yuuki Takezawa
レイヤードアーキテクチャを意識したPHPアプリケーションの構築
レイヤードアーキテクチャを意識したPHPアプリケーションの構築
Masashi Shinbara
Laravel5を使って開発してみた
Laravel5を使って開発してみた
Takeo Noda
PHP x AWS でスケーラブルなシステムをつくろう
PHP x AWS でスケーラブルなシステムをつくろう
Taiji INOUE
Recomendados
とある事業の脱レガシー
とある事業の脱レガシー
Hisateru Tanaka
CakePHP3ウォークスルー
CakePHP3ウォークスルー
Tomoki Hasegawa
behatエクステンションの作り方
behatエクステンションの作り方
Ryo Tomidokoro
PHPCON fukuoka 2015 CodeIgniter update
PHPCON fukuoka 2015 CodeIgniter update
Takako Miyagawa
phpspecで始めるBDD
phpspecで始めるBDD
Yuuki Takezawa
レイヤードアーキテクチャを意識したPHPアプリケーションの構築
レイヤードアーキテクチャを意識したPHPアプリケーションの構築
Masashi Shinbara
Laravel5を使って開発してみた
Laravel5を使って開発してみた
Takeo Noda
PHP x AWS でスケーラブルなシステムをつくろう
PHP x AWS でスケーラブルなシステムをつくろう
Taiji INOUE
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Mais conteúdo relacionado
Destaque
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Destaque
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
PHPでもこわくないHeroku(PHPカンファレンス福岡2015)
1.
PHPでもこわくないHeroku 2015年6月27日・PHPカンファレンス福岡 山岡広幸(合同会社テンマド)
2.
自己紹介 山岡広幸 a.k.a. @hiro_y 東京生まれ、東京育ち、東京在住 福岡には大叔母が住んでいます 幼いころ初めて乗った乗った飛行機は福岡行きでした
3.
合同会社テンマド 10mado, LLC 代表社員(エンジニアリング担当) Web系プロダクトの企画開発運用から採用サポートまで承っております
4.
conasu https://conasu.co/ 「チームのためのタスク管理ツール」 毎日のタスクをチームでこなしていく。 いろいろな職種のメンバーの間のやり取りをスムーズにします
5.
株式会社イノベーター・ジャパン 社外CTO 東京と福岡に事務所があります Webメディア運用から自社サービスまで
6.
7.
福岡オフィス 大濠公園目の前 積極採用中(エンジニアさん、ディレクターさん、アシスタントさん) 勉強会・イベントでの利用も可能ですのでお声がけください
8.
あらためて経歴 元 ウノウ(元 Zynga
Japan) 元 Digital Garage
9.
サーバー管理歴 社内サーバーでした http://blog.kushii.net/archives/762513.html データセンター クラウド(IaaS ⇨
PaaS)
10.
11.
Heroku PaaS #トノコト Ruby界隈でよく使われている印象
12.
最近のHeroku Ruby、Python、Node.js、PHP、Java、Scala、Closure Docker対応したりRedisの提供を開始したり
13.
PHP on Heroku(2015年6月現在) 選べるRuntime PHP
5.5 / 5.6 or HHVM 3.3 / 3.5 選べるWeb server Apache with mod_proxy_fcgi or nginx with PHP-FPM
14.
gitによるデプロイ git push heroku
master これだけでデプロイが完了する便利さ
15.
Composer 必要なライブラリのインストールだけでなく 拡張のインストール、PHPのRuntimeとバージョン指定まで依存性を解決 composer.lockを元にデプロイ時にインストール
16.
パラダイムシフト Twelve-Factor App という思想
http://12factor.net/ja/ 宣言的なフォーマットの利用、依存関係の明確化と移植性の最大化、 クラウドプラットフォームへの継続的デプロイ、スケールアップの容易性
17.
Herokuで得られるもの サーバーセットアップ・メンテナンスからの解放 PHPのバージョンアップに追随できる喜び 豊富なAdd-onたち
18.
Add-onの例 https://addons.heroku.com/ PostgreSQL、Redis、MySQL、MongoDBなどのデータストア その他にメール、監視、全文検索、キャッシュ、ロギング、キューなど
19.
Herokuで失うもの レイテンシ(東京リージョン、ありません) きめ細かくチューニングされたサーバー環境 AWSでサーバーを立てるのと比べると、やはりお高い
20.
21.
始めかた 1. Herokuのアプリケーション作成 2. PHPのbuildpackを使うように環境変数設定 3.
Procfileの準備(プロセス起動ファイル) 4. タイムゾーンの設定(Herokuと、必要ならPostgreSQL) 5. 各種Add-onの設定 6. git pushしてデプロイ 7. 各種通知(ログや監視など)の設定
22.
Heroku 気を付けるところ Qiitaに書きました HerokuでPHPを使うときに気を付けるところ http://qiita.com/hiro_y/items/bc631a27c9701f81a4f9
23.
開発環境 ローカルで開発環境を作っています PHPはHomebrewで、DBはPostgres.appで http://postgresapp.com/ PHPのビルトインサーバーをgulp.jsで起動しています
24.
開発環境の考え方 できるだけシンプルな構成にする ビルトインサーバーできちんと動けばたいてい大丈夫
25.
Tips: キャッシュの活用 ブラウザーキャッシュの利用(expireをきちんと設定) その分アプリケーションサーバーへの負荷が減ります
26.
Tips: CDNの利用 例えばCSS、JavaScript、画像の配信をCloudFront経由で Web fontではAccess-Control-Allow-Originヘッダーの設定を忘れずに
27.
Tips: ステージング環境の用意 環境構築が簡単なので本番環境と同等のステージング環境の用意が容易 各環境を振り分けるのに環境変数を利用すると便利(heroku config)
28.
Tips: web以外のprocess 例えばworkerを動かしたい場合。 ParallelPrefork とか使うと便利 https://github.com/travail/php-parallel-prefork
29.
Herokuの使いどころ プロダクトのプロトタイプとか開発初期に利用するの、オススメ 成長したらAWSに移行するのもよいのでは(考慮した設計を…) レイテンシが問題になるような場合は、避けたい
30.
何はともあれ 気軽に試してみたらいいと思うよ。 Webサービスを簡単に作れる楽しさを多くの人に知ってほしい もちろん、実際のビジネスでも使えるのでそちらもぜひ
Baixar agora