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
投票アプリの反省と新機能
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
smallmonkeykey
October 04, 2024
0
59
投票アプリの反省と新機能
9月29日に行われたTokyuRubyKaigi15で使った投票アプリの画像データが消えた原因と新機能について。10月4日に行われたomotesando.rbで発表しました。
smallmonkeykey
October 04, 2024
Tweet
Share
More Decks by smallmonkeykey
See All by smallmonkeykey
N+1問題が起きる原因について調べてみた
smallmonkeykey
0
41
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
120
Faster Mobile Websites
deanohume
310
31k
Designing for Performance
lara
610
70k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
350
ラッコキーワード サービス紹介資料
rakko
1
2.3M
Bash Introduction
62gerente
615
210k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
A designer walks into a library…
pauljervisheath
210
24k
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へのシェア機能を追加
感想