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
480
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 Railway Oriented Programming
wtnabe
0
33
Bindanのススメ
wtnabe
0
26
そのオブジェクト、何を保証してくれますか? - GuideRailのススメ -
wtnabe
0
38
Effective Jekyll
wtnabe
0
67
5 min Jekyll/Liquid Plugin cooking
wtnabe
0
34
Ruby de Wasm
wtnabe
0
61
Cloud Native Buildpacksって結局どうなの?
wtnabe
0
50
Decoupled System with Turbo Frame
wtnabe
1
130
join-kanazawarb-or-7years-passed-since-it-was-borned
wtnabe
0
800
Other Decks in Programming
See All in Programming
CSC305 Lecture 12
javiergs
PRO
0
250
AI 駆動開発におけるコミュニティと AWS CDK の価値
konokenj
5
300
Vue 3.6 時代のリアクティビティ最前線 〜Vapor/alien-signals の実践とパフォーマンス最適化〜
hiranuma
2
340
業務でAIを使いたい話
hnw
0
220
O Que É e Como Funciona o PHP-FPM?
marcelgsantos
0
240
組込みだけじゃない!TinyGo で始める無料クラウド開発入門
otakakot
2
380
フロントエンド開発のためのブラウザ組み込みAI入門
masashi
7
3.6k
Module Proxyのマニアックな話 / Niche Topics in Module Proxy
kuro_kurorrr
0
360
AI Agent 時代的開發者生存指南
eddie
4
2.2k
SODA - FACT BOOK(JP)
sodainc
1
9.1k
Leading Effective Engineering Teams in the AI Era
addyosmani
7
680
実践Claude Code:20の失敗から学ぶAIペアプログラミング
takedatakashi
18
9.3k
Featured
See All Featured
Build The Right Thing And Hit Your Dates
maggiecrowley
38
2.9k
4 Signs Your Business is Dying
shpigford
186
22k
Being A Developer After 40
akosma
91
590k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
[RailsConf 2023] Rails as a piece of cake
palkan
57
6k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.5k
Code Reviewing Like a Champion
maltzj
526
40k
Gamification - CAS2011
davidbonilla
81
5.5k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
GraphQLとの向き合い方2022年版
quramy
49
14k
Statistics for Hackers
jakevdp
799
220k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
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 !