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
wtnabe
July 18, 2015
Programming
0
480
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 de Railway Oriented Programming
wtnabe
0
34
Bindanのススメ
wtnabe
0
26
そのオブジェクト、何を保証してくれますか? - GuideRailのススメ -
wtnabe
0
38
Effective Jekyll
wtnabe
0
67
5 min Jekyll/Liquid Plugin cooking
wtnabe
0
34
Ruby de Wasm
wtnabe
0
61
Cloud Native Buildpacksって結局どうなの?
wtnabe
0
50
Decoupled System with Turbo Frame
wtnabe
1
130
join-kanazawarb-or-7years-passed-since-it-was-borned
wtnabe
0
800
Other Decks in Programming
See All in Programming
Swift Concurrency 年表クイズ
omochi
3
220
Dive into Triton Internals
appleparan
0
420
AI駆動開発カンファレンスAutumn2025 _AI駆動開発にはAI駆動品質保証
autifyhq
0
110
Inside of Swift Export
giginet
PRO
1
310
TransformerからMCPまで(現代AIを理解するための羅針盤)
mickey_kubo
7
5.9k
AIと人間の共創開発!OSSで試行錯誤した開発スタイル
mae616
2
870
Making Angular Apps Smarter with Generative AI: Local and Offline-capable
christianliebel
PRO
0
100
ドメイン駆動設計のエッセンス
masuda220
PRO
15
7.4k
CSC509 Lecture 07
javiergs
PRO
0
250
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
690
CSC509 Lecture 10
javiergs
PRO
0
160
CSC305 Lecture 13
javiergs
PRO
0
350
Featured
See All Featured
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
Optimizing for Happiness
mojombo
379
70k
Optimising Largest Contentful Paint
csswizardry
37
3.5k
Context Engineering - Making Every Token Count
addyosmani
8
330
How to Think Like a Performance Engineer
csswizardry
27
2.2k
Leading Effective Engineering Teams in the AI Era
addyosmani
8
710
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
116
20k
It's Worth the Effort
3n
187
28k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
650
Into the Great Unknown - MozCon
thekraken
40
2.1k
Faster Mobile Websites
deanohume
310
31k
Why You Should Never Use an ORM
jnunemaker
PRO
60
9.6k
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 !