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
490
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
21
Ruby de Railway Oriented Programming
wtnabe
0
47
Bindanのススメ
wtnabe
0
34
そのオブジェクト、何を保証してくれますか? - GuideRailのススメ -
wtnabe
0
47
Effective Jekyll
wtnabe
0
76
5 min Jekyll/Liquid Plugin cooking
wtnabe
0
41
Ruby de Wasm
wtnabe
0
70
Cloud Native Buildpacksって結局どうなの?
wtnabe
0
57
Decoupled System with Turbo Frame
wtnabe
1
140
Other Decks in Programming
See All in Programming
Grafana:建立系統全知視角的捷徑
blueswen
0
260
ゲームの物理 剛体編
fadis
0
390
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
330
DevFest Android in Korea 2025 - 개발자 커뮤니티를 통해 얻는 가치
wisemuji
0
180
Deno Tunnel を使ってみた話
kamekyame
0
280
Developing static sites with Ruby
okuramasafumi
0
340
これならできる!個人開発のすゝめ
tinykitten
PRO
0
140
PostgreSQLで手軽にDuckDBを使う!DuckDB&pg_duckdb入門/osc25hi-duckdb
takahashiikki
0
220
[AtCoder Conference 2025] LLMを使った業務AHCの上⼿な解き⽅
terryu16
6
960
マスタデータ問題、マイクロサービスでどう解くか
kts
0
160
AIエージェントの設計で注意するべきポイント6選
har1101
6
2.8k
tparseでgo testの出力を見やすくする
utgwkk
2
330
Featured
See All Featured
Are puppies a ranking factor?
jonoalderson
0
2.5k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
150
Mobile First: as difficult as doing things right
swwweet
225
10k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
0
100
Navigating Team Friction
lara
191
16k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
0
46
[RailsConf 2023] Rails as a piece of cake
palkan
58
6.2k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
100
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
0
980
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
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 !