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
Phoenixでディレクトリリスティングを取るには
Search
Kenji Rikitake
January 11, 2017
Programming
0
640
Phoenixでディレクトリリスティングを取るには
Presentation for tokyo.ex #7 / 歌舞伎座.tech #13 11-JAN-2017
Kenji Rikitake
January 11, 2017
Tweet
Share
More Decks by Kenji Rikitake
See All by Kenji Rikitake
SDR Implementation of Analog FM Broadcast Multipath Filter
jj1bdx
0
760
インターネットとオープンな無線技術の今後 / Future of Internet and Open Radio Engineering
jj1bdx
0
1.2k
FM放送とマルチパスを適応フィルタで極めてみた / Solving multipath distortion of FM broadcast by adaptive filters
jj1bdx
1
3.4k
ソフトウェアラジオとC++ そしてFMエアチェックのための信号解析と数値計算にまつわるよもやま話 / Software radio and C++
jj1bdx
0
980
SDR時代のFM受信 マルチパスモニタとマルチパスフィルタ / FM broadcast reception with SDR - multipath monitor and multipath filter
jj1bdx
0
580
How I discover a working implementation of clock_nanosleep() for macOS in CPAN Time::Hires
jj1bdx
1
1.2k
Sleeping pays / 1000eng-74th-jj1bdx
jj1bdx
1
42
The BEAM Programming Paradigm
jj1bdx
1
910
Safe randomness: theory and practice
jj1bdx
1
1.4k
Other Decks in Programming
See All in Programming
ソフトウェアエンジニアの成長
masuda220
PRO
10
1.1k
Amazon Bedrock Multi Agentsを試してきた
tm2
1
290
『GO』アプリ データ基盤のログ収集システムコスト削減
mot_techtalk
0
120
Boost Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
250
楽しく向き合う例外対応
okutsu
0
110
データの整合性を保つ非同期処理アーキテクチャパターン / Async Architecture Patterns
mokuo
47
17k
Honoをフロントエンドで使う 3つのやり方
yusukebe
7
3.3k
Immutable ActiveRecord
megane42
0
140
DROBEの生成AI活用事例 with AWS
ippey
0
130
Conform を推す - Advocating for Conform
mizoguchicoji
3
690
AWS Organizations で実現する、 マルチ AWS アカウントのルートユーザー管理からの脱却
atpons
0
150
Grafana Cloudとソラカメ
devoc
0
170
Featured
See All Featured
Designing for humans not robots
tammielis
250
25k
Into the Great Unknown - MozCon
thekraken
35
1.6k
Making the Leap to Tech Lead
cromwellryan
133
9.1k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Automating Front-end Workflow
addyosmani
1368
200k
How to train your dragon (web standard)
notwaldorf
91
5.8k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
133
33k
Typedesign – Prime Four
hannesfritz
40
2.5k
How GitHub (no longer) Works
holman
314
140k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
Transcript
PhoenixͰσΟϨΫτϦϦεςΟϯά ΛऔΔʹ ྗ ݈࣍ ྗ݈ٕ࣍ज़࢜ࣄॴ / ϖύϘݚڀॴ 20171݄11 @jj1bdx tokyo.ex
#7 / Վب࠲.tech #13 Kenji Rikitake / tokyo.ex #7 11-JAN-2017 1
ࣗݾհ Erlang/OTPྺ9ऑ Elixirྺ2ऑͷॳ৺ऀ ϖύϘݚڀॴݟश͍ Webؔ࿈શ෦ͬͯ·͢ Kenji Rikitake / tokyo.ex #7
11-JAN-2017 2
σΟϨΫτϦϦεςΟϯά ӈYawsͷྫ ͜Μͳײ͡Ͱ੩తίϯςϯπ ͷϦετΛऔΓ͍ͨ Apache, Nginx, Yaws ͳΒ؆୯ʹऔΕ Δɺ͕… Kenji
Rikitake / tokyo.ex #7 11-JAN-2017 3
Phoenix/PlugͰ͚ͬ͜͏͍͠ Phoenixͷ੩తίϯςϯπͰPlug.StaticΛ͏ • ύεΛσΟϨΫτϦʹϚοϓʢΞΫηε੍ݶՄʣ • ϑΝΠϧͳΒ༰Λmime typeͱ͍ͬ͠ΐʹฦ͢ • ϑΝΠϧͰͳ͍߹ແࢹͯ࣍͠ͷPlugˠ͜͜ʹσΟϨΫ τϦͩͬͨ߹ͷॲཧΛPlugͱͯ͠ॻ͍ͯΔͱΑͦ͞͏
Kenji Rikitake / tokyo.ex #7 11-JAN-2017 4
ϞδϡʔϧΛ୳ͨ͠ …ͳ͔ͬͨ Kenji Rikitake / tokyo.ex #7 11-JAN-2017 5
ͳ͚Ε࡞Δ Kenji Rikitake / tokyo.ex #7 11-JAN-2017 6
θϩ͔Βॻ͘ͱ݁ߏେม σΟϨΫτϦͩͬͨΒҎԼͷॲཧΛ͢Δ • ϦετΛऔΔʢιʔτΞϧΰϦζϜม͑ΒΕΔʣ • ιʔτΞϧΰϦζϜGETͷqueryύϥϝʔλͰࢦఆ • ϑΝΠϧͷଐੑΛऔಘͯ͠දࣔ • Ұઃఆͨ͠ΞϧΰϦζϜURLͷதʹೖΕͯอ࣋
Kenji Rikitake / tokyo.ex #7 11-JAN-2017 7
Ռ: plug_static_ls Ϟδϡʔϧ໊PlugStaticLsɺendpointʹ͜Μͳײ͡Ͱઃఆ plug Plug.Static, at: "/static", from: "/files", gzip:
false, only: ~w(images public js css) plug PlugStaticLs, at: "/static", from: "/files" only: ~w(images public) # ֘͠ͳ͍ͷ௨ա/ॲཧͷࢦఆ͕ඞཁ Kenji Rikitake / tokyo.ex #7 11-JAN-2017 8
plug_static_lsͷը໘ ͚ͬ͜͏ॲཧ͕͔͔࣌ؒΔʢmsʙ ඦmsʣͷͰެ։༻్ʹ͔ͳ͍ ϑΥϧμͷը૾Base64ͷimgόΠφϦ ͰೖΕΒΕͳ͘ͳ͍͕ϖʔδαΠζ͕ େ͖͘ͳΔͷͰΊͨ ͦΕͰҰԠYawsͬΆ͘ͳ͍ͬͯΔ Kenji Rikitake /
tokyo.ex #7 11-JAN-2017 9
plug_static_ls https://hex.pm/packages/plug_static_ls https://github.com/jj1bdx/plug_static_ls Kenji Rikitake / tokyo.ex #7 11-JAN-2017 10
Thank you Kenji Rikitake / tokyo.ex #7 11-JAN-2017 11