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
720
インターネットとオープンな無線技術の今後 / 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
950
SDR時代のFM受信 マルチパスモニタとマルチパスフィルタ / FM broadcast reception with SDR - multipath monitor and multipath filter
jj1bdx
0
560
How I discover a working implementation of clock_nanosleep() for macOS in CPAN Time::Hires
jj1bdx
1
1.1k
Sleeping pays / 1000eng-74th-jj1bdx
jj1bdx
1
42
The BEAM Programming Paradigm
jj1bdx
1
890
Safe randomness: theory and practice
jj1bdx
1
1.3k
Other Decks in Programming
See All in Programming
テストコードのガイドライン 〜作成から運用まで〜
riku929hr
1
170
ソフトウェアの振る舞いに着目し 複雑な要件の開発に立ち向かう
rickyban
0
890
fs2-io を試してたらバグを見つけて直した話
chencmd
0
230
Keeping it Ruby: Why Your Product Needs a Ruby SDK - RubyWorld 2024
envek
0
180
生成AIでGitHubソースコード取得して仕様書を作成
shukob
0
330
Scalaから始めるOpenFeature入門 / Scalaわいわい勉強会 #4
arthur1
1
310
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
720
Go の GC の不得意な部分を克服したい
taiyow
2
770
バグを見つけた?それAppleに直してもらおう!
uetyo
0
180
「とりあえず動く」コードはよい、「読みやすい」コードはもっとよい / Code that 'just works' is good, but code that is 'readable' is even better.
mkmk884
3
100
暇に任せてProxmoxコンソール 作ってみました
karugamo
1
720
Mermaid x AST x 生成AI = コードとドキュメントの完全同期への道
shibuyamizuho
0
160
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
BBQ
matthewcrist
85
9.4k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.5k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
32
2.7k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.6k
KATA
mclloyd
29
14k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Optimising Largest Contentful Paint
csswizardry
33
3k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.2k
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