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
390
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
37
join-kanazawarb-or-7years-passed-since-it-was-borned
wtnabe
0
650
let-me-edit-with-editor
wtnabe
0
240
google-photos-and-storage-and-rclone
wtnabe
0
310
one case of how to begin vuejs
wtnabe
2
360
Kanazawa.rb meetup #56 Coderetreat Intro
wtnabe
0
340
lightweight authenticity of microservices
wtnabe
0
360
Automate WordPress deployment with WordMove
wtnabe
1
400
CircleCI Hands-on for Beginners
wtnabe
0
370
Other Decks in Programming
See All in Programming
TypeScript 関数型スタイルでバックエンド開発のリアル
naoya
49
16k
Webアプリをできるだけコードを手書きしないで作ってみる
tomokusaba
2
230
Native Federation: The Future of Micro Frontends in Angular
manfredsteyer
PRO
0
170
GoでParserを書く
karupanerura
1
260
FoodGram
iseruuuuu
0
230
Jetpack Composeとデザインシステム
rmakiyama
0
230
Fragment Composition of GraphQL
quramy
14
1.7k
Embedding it into Ruby code
soutaro
1
290
ソースコードを美しくたもつために ~コードレビューの認知限界を突破し、年間400リリースを達成する~
kotauchisunsun
1
730
Runtime Objects in Rust
mitsuhiko
0
220
Long journey of Ruby standard library RubyKaigi 2024
andpad
2
200
The grand strategy of Ruby Parser
yui_knk
5
270
Featured
See All Featured
Creatively Recalculating Your Daily Design Routine
revolveconf
211
11k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
188
16k
The Illustrated Children's Guide to Kubernetes
chrisshort
32
47k
Facilitating Awesome Meetings
lara
43
5.6k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
660
120k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
155
14k
The Language of Interfaces
destraynor
151
23k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
67
14k
Designing for Performance
lara
601
67k
A Tale of Four Properties
chriscoyier
153
22k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
352
28k
Fireside Chat
paigeccino
22
2.7k
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 !