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
Lightweight PHP development environment with Fo...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
wtnabe
July 18, 2015
Programming
0
500
Lightweight PHP development environment with Foreman and built-in server
wtnabe
July 18, 2015
Tweet
Share
More Decks by wtnabe
See All by wtnabe
Rubyでもモノリポしたい - 調査、おわわり編 -
wtnabe
0
34
Ruby de Railway Oriented Programming
wtnabe
0
69
Bindanのススメ
wtnabe
0
44
そのオブジェクト、何を保証してくれますか? - GuideRailのススメ -
wtnabe
0
61
Effective Jekyll
wtnabe
0
91
5 min Jekyll/Liquid Plugin cooking
wtnabe
0
53
Ruby de Wasm
wtnabe
0
81
Cloud Native Buildpacksって結局どうなの?
wtnabe
0
64
Decoupled System with Turbo Frame
wtnabe
1
160
Other Decks in Programming
See All in Programming
CSC307 Lecture 14
javiergs
PRO
0
470
TipKitTips
ktcryomm
0
160
GC言語のWasm化とComponent Modelサポートの実践と課題 - Scalaの場合
tanishiking
0
110
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
370
15年目のiOSアプリを1から作り直す技術
teakun
1
620
nuget-server - あなたが必要だったNuGetサーバー
kekyo
PRO
0
230
オブザーバビリティ駆動開発って実際どうなの?
yohfee
3
810
守る「だけ」の優しいEMを抜けて、 事業とチームを両方見る視点を身につけた話
maroon8021
3
720
AI時代のシステム設計:ドメインモデルで変更しやすさを守る設計戦略
masuda220
PRO
5
770
技術検証結果の整理と解析をAIに任せよう!
keisukeikeda
0
110
CDIの誤解しがちな仕様とその対処TIPS
futokiyo
0
200
DevinとClaude Code、SREの現場で使い倒してみた件
karia
1
1k
Featured
See All Featured
From π to Pie charts
rasagy
0
150
Embracing the Ebb and Flow
colly
88
5k
The Invisible Side of Design
smashingmag
302
51k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
140
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
82
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.4k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.4k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.7k
Become a Pro
speakerdeck
PRO
31
5.8k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
110
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
67
37k
Transcript
Lightweight PHP dev-env with Foreman and built-in server @wtnabe Kanazawa.rb
meetup #35 2015-07-18 (Sat) at DMM.com Labo
Today's Topics Foreman PHP's built-in server for Legacy PHP
Foreman
Process Manager ddollar/foreman can install with rubygems invoke processes &
attach them to console configured with Procfile kill all processes with ^C developed by Heroku's naka-no-hito
Procfile's format define processes you want to control foreman(1) -
manage Procfile-based applications <process type>: <command> ex) web: php -S localhost:3000 postgres: postgresql -D db redis: redis-server
with Heroku Heroku reserves web type for HTTP Router
PHP's built-in server
after PHP 5.4 trait and use ( like Ruby's module
! ) shorthand array syntax [] built-in web server <?= always available remove call-time pass by reference, register globals, safe mode, etc
see Release Note http://php.net/releases/5_4_0.php
-S option -S <addr>:<port> Run with built-in web server ex)
like Rails $ php -S localhost:3000
for Legacy PHP
Legacy PHP No Frameworks invoke scripts directly 'current working directory'
is dirname(script)
You need Router router.php for built-in server and ultra legacy
env & code PHP: Internal (built-in) functions - Manual
One more thing
Windows Foreman does not work ( I believe ) Use
forego ddollar/forego requirements golang
Ganbare
You don't need VM any more ! any more ?
Enjoy !