dorenisuru's Introduction
dorenisuru's People
dorenisuru's Issues
障害通知をしたい
プロファイルを整理する
なるべく起動オプションをつけないでいいように。
CIをしたい
wercker で十分だろう。
(無料だし)
運用監視ツール(New Relic)をセッティングする
Heroku Addonはセッティング済み
アプリ側にエージェントを設定する
wiki用リソース
Asset Pipeline を使いたい
いまどき生CSS、生JSではつらいので、Less / Coffee に置き換えたい。
http://www.asset-pipeline.com/
マニュアルをざっと見ると、Gradleの記載しかないが、おそらくJavaでもいけるはず。
要実験。
CSRF対策する
Webサービスの基本セキュリティとして
更新系サブミットボタンの2度押し防止
JSにて
トピックの削除で子・孫レコードをCascadeDeleteしたい
手動で削除するときに、子・孫のテーブルから消すのがたいへんなので。
PostgresのFOREIGN KEY ... ON DELETE CASCADE
を使う。
ちょっとした開発・運用改善
トップ画像が重い
カルーセルの起動に時間がかかっている
スマホ環境だと厳しいので、画像の解像度・品質を落とす
一定期間アクセスのないデータを自動で削除したい
HerokuのPostgresの無料枠Hobby-Dev
の容量制限にかからないように。
(全テーブルの総合計 10,000行 まで)
https://devcenter.heroku.com/articles/heroku-postgres-plans#hobby-tier
30日以上アクセスがないトピックを削除する。
topics.last_accessed_at
にトピックへの最終アクセス日時を記録している。
Herokuはcronが使えないので、Heroku Scheduler
で日時バッチを起動させる。
Heroku Scheduler
プラグインは既に設定済み。
サービスの死活チェックをしたい
ヘルスチェック用のエンドポイントを、外部(Heroku以外)のNagiosなどから定期的に叩いて、死活チェックをしたい。
(鈴木さん相談)
ただし、チェック頻度が高いと、FreeDyno
の月の無料枠をオーバーしてしまうので、周期は要検討。
(1日3〜4回程度で十分だろう)
ヘルスチェックはSpringBoot-Actuator
で稼働させる。
エンドポイントのURLは以下。
このチェックでDBの空振りSelect
も実施される。
GAタグを埋め込む
全体テンプレートに埋め込んでおく(layout.html)。
カスタムディメンションはどうするか。
トピックのハッシュIDあたり?
GAタグ自体はeunikaドメインで作成して管理が良さそう(鈴木さん相談)。
Herokuのオーナーを運用アカウントに移譲
op
アカウントに移譲する
各自はop
アカウントのコラボレーターという形態
Bugsnagからの障害通知先をeunika運用アドレスにしたい
#4 の後続タスク
Bugsnagの組織(organization)にeunika運用を加えて、それに通知するようにする。
Google側の転送機能で、担当者宛へ通知するのが良いか?
(鈴木さん相談)
画面の通知メッセージを目立つように
さりげないから
気づくように動きをつける?
選択肢の登録は20件までに制限する
無制限に登録されるのを防止。
HerokuのPostgresの容量制限対策としても。
トピックの編集は、作成者のみに制限したい(Cookie)
トピックURLを偶然探し当てられた場合に、いたずらの編集・削除を防止するため。
CookieにExpire無制限で作成者フラグを持たせておく。
作成した端末&ブラウザ限定になるが、まあ十分だろう。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.