Code Monkey home page Code Monkey logo

dorenisuru's Introduction

dorenisuru?

wercker status

dorenisuru's People

dorenisuru's Issues

トップ画像が重い

カルーセルの起動に時間がかかっている
スマホ環境だと厳しいので、画像の解像度・品質を落とす

一定期間アクセスのないデータを自動で削除したい

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は以下。

https://dorenisuru.herokuapp.com/health

このチェックでDBの空振りSelectも実施される。

GAタグを埋め込む

全体テンプレートに埋め込んでおく(layout.html)。

カスタムディメンションはどうするか。
トピックのハッシュIDあたり?
GAタグ自体はeunikaドメインで作成して管理が良さそう(鈴木さん相談)。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.