https://github.com/hisasann/monitor-my-site
自分のサイトのヘルスチェック用 firebase functions healthcheck
https://github.com/hisasann/monitor-my-site
firebase firebase-firestore firebase-functions healthcheck typescript
Last synced: 2 months ago
JSON representation
自分のサイトのヘルスチェック用 firebase functions healthcheck
- Host: GitHub
- URL: https://github.com/hisasann/monitor-my-site
- Owner: hisasann
- Created: 2022-02-23T10:05:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T05:23:52.000Z (over 2 years ago)
- Last Synced: 2025-05-15T03:13:01.595Z (about 1 year ago)
- Topics: firebase, firebase-firestore, firebase-functions, healthcheck, typescript
- Language: TypeScript
- Homepage:
- Size: 71.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# monitor-my-site
自分のサイトが落ちていないかを確認するチェッカーです。
最終的に結果を Slack 通知するようにしています。
`https://hisasann.dev/` が `https://www.hisasann.dev/` にリダイレクトさせるようになってるようで、 **308** が返ってきた。
ので、それも考慮した。
## local 開発
一般的な開発。
firebase config を使っているので、 こちらは常に実行しておく必要がある。
```bash
yarn serve
```
スケジューラーの開発の場合は、以下のように登録したファンクションを追加で実行します。
```bash
yarn shell
firebase> scheduledFunction()
```
## lint
lint が通らないとデプロイも通らないので、 error がなくなるようにしておく。
```bash
yarn lint:fix
```
## 本番 deploy
```bash
yarn deploy
```