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
430
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 Wasm
wtnabe
0
5
Cloud Native Buildpacksって結局どうなの?
wtnabe
0
9
Decoupled System with Turbo Frame
wtnabe
1
59
join-kanazawarb-or-7years-passed-since-it-was-borned
wtnabe
0
710
let-me-edit-with-editor
wtnabe
0
270
google-photos-and-storage-and-rclone
wtnabe
0
360
one case of how to begin vuejs
wtnabe
2
400
Kanazawa.rb meetup #56 Coderetreat Intro
wtnabe
0
390
lightweight authenticity of microservices
wtnabe
0
400
Other Decks in Programming
See All in Programming
Делим тесты между QA и разработчиком
mariyasaygina
0
460
5年分のツケを一気に払った話
soogie
3
1.1k
ファーストペンギンBot @Qiita Hackathon 2024 予選
dyson_web
0
210
Rails 8 Frontend: 10 commandments & 7 deadly sins in 2025
yshmarov
1
580
MLOps in Mercari Group’s Trust and Safety ML Team
cjhj
1
100
為醫療加裝Python的引擎
cclai999
0
270
M5Stackボードの選び方
tanakamasayuki
0
200
Интеграционное тестирование: как приручить хаос
mariyasaygina
0
470
利用者視点で考える、イテレータとの上手な付き合い方
syumai
4
210
App Router 悲喜交々
quramy
7
370
GitHub Copilot Workspace で我々のアプリ開発がどう変わるのか?
shuyakinjo
0
840
WEBアプリケーションにおけるAWS Lambdaを用いた大規模な非同期処理の実践
delhi09
PRO
7
3.7k
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Navigating Team Friction
lara
183
14k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
327
21k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
167
48k
Fashionably flexible responsive web design (full day workshop)
malarkey
403
65k
The Brand Is Dead. Long Live the Brand.
mthomps
53
38k
Visualization
eitanlees
143
15k
Being A Developer After 40
akosma
84
590k
Thoughts on Productivity
jonyablonski
67
4.2k
Scaling GitHub
holman
458
140k
Infographics Made Easy
chrislema
239
18k
The Mythical Team-Month
searls
218
43k
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 !