https://github.com/math2001/cmt_manager
https://github.com/math2001/cmt_manager
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/math2001/cmt_manager
- Owner: math2001
- Created: 2020-12-12T00:54:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-12T03:04:51.000Z (over 5 years ago)
- Last Synced: 2025-02-24T13:15:24.352Z (over 1 year ago)
- Language: Python
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deploy
## 1. No debug
Make sure `debug = False` in `cmt_manager/settings.py`
## 2. Allowed hosts
Adapt `ALLOWED_HOSTS` according to your needs (this is list of host that the
server is allowed to serve on. It should agree or match with the --bind option
below)
## 3. Generate secure key
python generate-secret-key.py
And put the key in the `cmt_manager/settings.py` file, for the `SECRET_KEY`
variable.
## 4. Migrate database
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
python manage.py check --deploy # should only complain about SSL
python manage.py migrate
deactivate
## 5. Run
.venv/bin/python -m daphne --bind --port cmt_manager.asgi:application
## 6. Fetch all the probes
Visit `/cmt/fetch-probes-checks`. Be careful, it can't do better than assume
that the `max_alert_level`, `enable` and `enable_pager` keys, you have to update
them manually in `/cmt/`.