Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
投票アプリの反省と新機能
Search
smallmonkeykey
October 04, 2024
65
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
投票アプリの反省と新機能
9月29日に行われたTokyuRubyKaigi15で使った投票アプリの画像データが消えた原因と新機能について。10月4日に行われたomotesando.rbで発表しました。
smallmonkeykey
October 04, 2024
More Decks by smallmonkeykey
See All by smallmonkeykey
N+1問題が起きる原因について調べてみた
smallmonkeykey
0
51
Featured
See All Featured
Making Projects Easy
brettharned
120
6.7k
Leo the Paperboy
mayatellez
8
2.3k
From π to Pie charts
rasagy
0
360
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
680
How Software Deployment tools have changed in the past 20 years
geshan
1
34k
BBQ
matthewcrist
89
10k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.9k
Being A Developer After 40
akosma
91
590k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Faster Mobile Websites
deanohume
310
32k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
500
Transcript
投票アプリの反省と新機能
自己紹介 フィヨルドブートキャンプで学習中です 年内卒業目指してます
投票アプリとは
TokyuRuby会議15で使ったアプリ ・9月29日に行われたTokyuRuby会議の レクリエーショで使ったアプリ ・持ち寄った食べ物やお酒やLTで優勝者(王)を決める! ・その投票の集計やエントリーを行ったアプリの事
どうだったか?
途中で画像が消えました😭
なぜ起きたのか 画像はActive Storage を使い、保存先は Amazon S3で保存(してるつもりだった) TokyuRuby会議の進みが早く、投票結果を予定より早く公開しようということになった 投票結果の公開の時間を早めるため時間を変更し、デプロイ 投票アプリを確認すると、画像が消えていました😭😭😭
config.active_storage.service = :amazon とすべきところが なぜ起きたのか Railsの環境の基本設定が間違っていた config.active_storage.service = :local になっていた
なぜ起きたのか 新しくデプロイするとコンテナが入れ替わるので、 localに保存していた画像データは引き継がれず 画像が表示されなかった
現状の調査結果 コンテナというのがどうやら関係しているらしいと知った 画像が消えなかったらコンテナなんて知らなかったので経験できてよかった (ということにしたい) コンテナについてはまだわかっていないので勉強します
新機能
投票結果のアンケート
コメントの一般公開 ・ログインせずにコメントが見れるようになった ・SNSへのシェア機能を追加
感想