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
470
Lightweight PHP development environment with Foreman and built-in server
wtnabe
July 18, 2015
Tweet
Share
More Decks by wtnabe
See All by wtnabe
Effective Jekyll
wtnabe
0
47
5 min Jekyll/Liquid Plugin cooking
wtnabe
0
22
Ruby de Wasm
wtnabe
0
46
Cloud Native Buildpacksって結局どうなの?
wtnabe
0
38
Decoupled System with Turbo Frame
wtnabe
1
120
join-kanazawarb-or-7years-passed-since-it-was-borned
wtnabe
0
780
let-me-edit-with-editor
wtnabe
0
330
google-photos-and-storage-and-rclone
wtnabe
0
440
one case of how to begin vuejs
wtnabe
2
460
Other Decks in Programming
See All in Programming
Systèmes distribués, pour le meilleur et pour le pire - BreizhCamp 2025 - Conférence
slecache
0
110
git worktree × Claude Code × MCP ~生成AI時代の並列開発フロー~
hisuzuya
1
510
5つのアンチパターンから学ぶLT設計
narihara
1
120
GitHub Copilot and GitHub Codespaces Hands-on
ymd65536
1
130
Blazing Fast UI Development with Compose Hot Reload (droidcon New York 2025)
zsmb
1
260
データの民主化を支える、透明性のあるデータ利活用への挑戦 2025-06-25 Database Engineering Meetup#7
y_ken
0
330
ReadMoreTextView
fornewid
1
490
Create a website using Spatial Web
akkeylab
0
310
GoのGenericsによるslice操作との付き合い方
syumai
3
690
今ならAmazon ECSのサービス間通信をどう選ぶか / Selection of ECS Interservice Communication 2025
tkikuc
20
3.7k
Benchmark
sysong
0
270
Is Xcode slowly dying out in 2025?
uetyo
1
220
Featured
See All Featured
Optimizing for Happiness
mojombo
379
70k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.2k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
A better future with KSS
kneath
239
17k
The Art of Programming - Codeland 2020
erikaheidi
54
13k
Site-Speed That Sticks
csswizardry
10
670
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Bash Introduction
62gerente
614
210k
Art, The Web, and Tiny UX
lynnandtonic
299
21k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
60k
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 !