Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Lightweight PHP development environment with Foreman and built-in server
wtnabe
July 18, 2015
Programming
0
290
Lightweight PHP development environment with Foreman and built-in server
wtnabe
July 18, 2015
Tweet
Share
More Decks by wtnabe
See All by wtnabe
join-kanazawarb-or-7years-passed-since-it-was-borned
wtnabe
0
400
let-me-edit-with-editor
wtnabe
0
100
google-photos-and-storage-and-rclone
wtnabe
0
150
one case of how to begin vuejs
wtnabe
2
250
Kanazawa.rb meetup #56 Coderetreat Intro
wtnabe
0
220
lightweight authenticity of microservices
wtnabe
0
210
Automate WordPress deployment with WordMove
wtnabe
1
250
CircleCI Hands-on for Beginners
wtnabe
0
240
Introducing Todays CI Services
wtnabe
0
200
Other Decks in Programming
See All in Programming
Custom Design Systems in Compose UI
rharter
5
510
Airflowはすごいぞ!
hankehly
0
360
Make the most of Django - PyCon Italia 2022
pauloxnet
0
110
io22 extended What's new in app performance
veronikapj
0
320
git on intellij
hiroto_kitamura
0
160
IE Graduation Certificate
jxck
6
4.7k
Reactive Java Microservices on Kubernetes with Spring and JHipster
deepu105
1
160
GitHubのユーザー名を変更した後のあれこれ
tahia910
0
120
インターン生・新卒向け、学校でもっと教えてほしいITエンジニア基本スキル
nearme_tech
0
120
Android スキルセットをフル活用して始めるスマートテレビアプリ開発
satsukies
0
190
CUDA高速化セミナーvol.1 ~画像処理アルゴリズムの高速化~
fixstars
3
170
エンジニアによる事業指標計測のススメ
doyaaaaaken
1
170
Featured
See All Featured
How To Stay Up To Date on Web Technology
chriscoyier
780
250k
StorybookのUI Testing Handbookを読んだ
zakiyama
4
2.2k
Creatively Recalculating Your Daily Design Routine
revolveconf
207
10k
The World Runs on Bad Software
bkeepers
PRO
57
5.3k
WebSockets: Embracing the real-time Web
robhawkes
57
5.1k
We Have a Design System, Now What?
morganepeng
35
2.9k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
12
920
Producing Creativity
orderedlist
PRO
333
37k
Faster Mobile Websites
deanohume
294
28k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
212
20k
Testing 201, or: Great Expectations
jmmastey
21
5.4k
Designing the Hi-DPI Web
ddemaree
272
32k
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 !