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 Foreman and built-in server
Search
wtnabe
July 18, 2015
Programming
0
410
Lightweight PHP development environment with Foreman and built-in server
wtnabe
July 18, 2015
Tweet
Share
More Decks by wtnabe
See All by wtnabe
Decoupled System with Turbo Frame
wtnabe
1
50
join-kanazawarb-or-7years-passed-since-it-was-borned
wtnabe
0
680
let-me-edit-with-editor
wtnabe
0
250
google-photos-and-storage-and-rclone
wtnabe
0
330
one case of how to begin vuejs
wtnabe
2
380
Kanazawa.rb meetup #56 Coderetreat Intro
wtnabe
0
360
lightweight authenticity of microservices
wtnabe
0
380
Automate WordPress deployment with WordMove
wtnabe
1
420
CircleCI Hands-on for Beginners
wtnabe
0
390
Other Decks in Programming
See All in Programming
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
2
81k
Exploring the Gradually Lost Technical Skills in the Cloud Native Era
hwchiu
2
3.9k
Android開発者のための Kotlin Multiplatform入門
ntaro
0
190
ドメイン駆動設計の実践
masuda220
PRO
19
5.2k
リハビリmruby
kishima
1
160
TiDB Serverless ~理想のServerless DBを考える~
soso_15315
1
160
Trial
cairolibrary720
1
130
日付と正規化
megmogmog1965
0
140
Composing an API the *right* way (Droidcon Berlin 2024)
zsmb
1
450
Rubyのパフォーマンスプロファイリングの改善 / Enhancing performance profiling for Ruby
osyoyu
1
410
DMMプラットフォームにおけるTiDBの導入から運用まで
pospome
7
3k
開発部に不満を持っていたCSがエンジニアにジョブチェンしてわかった「勝手に諦めない」ことの大切さ
sakuraikotone
28
16k
Featured
See All Featured
GitHub's CSS Performance
jonrohan
1026
450k
The Language of Interfaces
destraynor
151
23k
Build The Right Thing And Hit Your Dates
maggiecrowley
28
2.2k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
24
1.8k
Producing Creativity
orderedlist
PRO
340
39k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
How STYLIGHT went responsive
nonsquared
93
5k
10 Git Anti Patterns You Should be Aware of
lemiorhan
652
58k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
78
15k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
189
16k
Bash Introduction
62gerente
607
210k
Being A Developer After 40
akosma
72
580k
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 !