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
28
Ruby de Railway Oriented Programming
wtnabe
0
61
Bindanのススメ
wtnabe
0
41
そのオブジェクト、何を保証してくれますか? - GuideRailのススメ -
wtnabe
0
55
Effective Jekyll
wtnabe
0
84
5 min Jekyll/Liquid Plugin cooking
wtnabe
0
45
Ruby de Wasm
wtnabe
0
75
Cloud Native Buildpacksって結局どうなの?
wtnabe
0
61
Decoupled System with Turbo Frame
wtnabe
1
150
Other Decks in Programming
See All in Programming
Fluid Templating in TYPO3 14
s2b
0
130
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
200
360° Signals in Angular: Signal Forms with SignalStore & Resources @ngLondon 01/2026
manfredsteyer
PRO
0
130
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
220
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
200
izumin5210のプロポーザルのネタ探し #tskaigi_msup
izumin5210
1
130
AgentCoreとHuman in the Loop
har1101
5
240
2026年 エンジニアリング自己学習法
yumechi
0
140
24時間止められないシステムを守る-医療ITにおけるランサムウェア対策の実際
koukimiura
1
100
今から始めるClaude Code超入門
448jp
8
8.9k
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.9k
AI & Enginnering
codelynx
0
110
Featured
See All Featured
Faster Mobile Websites
deanohume
310
31k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
730
4 Signs Your Business is Dying
shpigford
187
22k
Tell your own story through comics
letsgokoyo
1
810
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.3k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
350
Ruling the World: When Life Gets Gamed
codingconduct
0
140
Google's AI Overviews - The New Search
badams
0
910
Embracing the Ebb and Flow
colly
88
5k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
76
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.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 !