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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
wtnabe
July 18, 2015
Programming
510
0
Share
Lightweight PHP development environment with Foreman and built-in server
wtnabe
July 18, 2015
More Decks by wtnabe
See All by wtnabe
Rubyでもモノリポしたい - 調査、おわわり編 -
wtnabe
0
38
Ruby de Railway Oriented Programming
wtnabe
0
76
Bindanのススメ
wtnabe
0
49
そのオブジェクト、何を保証してくれますか? - GuideRailのススメ -
wtnabe
0
66
Effective Jekyll
wtnabe
0
93
5 min Jekyll/Liquid Plugin cooking
wtnabe
0
55
Ruby de Wasm
wtnabe
0
84
Cloud Native Buildpacksって結局どうなの?
wtnabe
0
68
Decoupled System with Turbo Frame
wtnabe
1
160
Other Decks in Programming
See All in Programming
Ruby and LLM Ecosystem 2nd
koic
1
1.4k
実践ハーネスエンジニアリング #MOSHTech
kajitack
7
5.3k
Kubernetesでセルフホストが簡単なNewSQLを求めて / Seeking a NewSQL Database That's Simple to Self-Host on Kubernetes
nnaka2992
0
190
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
3
2.7k
今こそ押さえておきたい アマゾンウェブサービス(AWS)の データベースの基礎 おもクラ #6版
satoshi256kbyte
1
220
「接続」—パフォーマンスチューニングの最後の一手 〜点と点を結ぶ、その一瞬のために〜
kentaroutakeda
5
2.4k
AI 開発合宿を通して得た学び
niftycorp
PRO
0
190
Everything Claude Code OSS詳細 — 5層構造の中身と導入方法
targe
0
160
How to stabilize UI tests using XCTest
akkeylab
0
150
AI時代のシステム設計:ドメインモデルで変更しやすさを守る設計戦略
masuda220
PRO
6
1.2k
Reactive ❤️ Loom: A Forbidden Love Story
franz1981
2
210
ロボットのための工場に灯りは要らない
watany
12
3.3k
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Site-Speed That Sticks
csswizardry
13
1.1k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
240
The Cost Of JavaScript in 2023
addyosmani
55
9.8k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
140
Become a Pro
speakerdeck
PRO
31
5.9k
WENDY [Excerpt]
tessaabrams
9
37k
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Building the Perfect Custom Keyboard
takai
2
720
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
320
SEO for Brand Visibility & Recognition
aleyda
0
4.4k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
160
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 !