You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can schedule regular backups using a task scheduler like `cron` on Linux or Task Scheduler on Windows. Here is an example of a `cron` job that runs a backup every day at midnight:
By following these steps, you can effectively back up and restore your Delve instance, ensuring that your data is protected and can be quickly recovered in case of an issue.
3.**Configure Settings**: Adjust `delve/settings.py` and `delve/urls.py` for your environment. These files are provided in the repository and can be customized directly.
25
20
26
21
**Important**: It is very important to change your `SECRET_KEY` setting. The default setting will invalidate all sessions and more on every restart of the server. `SECRET_KEY` should be set to a randomly generated string that is kept secret and safe. The `python manage.py gen-secret-key` command will print such a string that can be copied and pasted into your `settings.py`.
27
22
@@ -47,10 +42,10 @@ Follow these steps to install Delve:
47
42
48
43
```
49
44
# Start the web server (Explore UI, Admin UI and REST API)
50
-
./dlv serve
45
+
python manage.py serve
51
46
52
47
# Start the task scheduler
53
-
./dlv qcluster
48
+
python manage.py qcluster
54
49
55
50
# Start the syslog server
56
51
python utilities/cli/syslog-receiver.py
@@ -59,7 +54,7 @@ Follow these steps to install Delve:
59
54
python utilities/cli/tail-files.py /var/log/*.log
60
55
```
61
56
62
-
**NOTE**: Utilities launched with `dlv` are generally configured in settings.py, while utilities in `utilities/cli/` are generally configured via command line arguments.
57
+
**NOTE**: Utilities launched with `python manage.py` are configured in `settings.py`, while utilities in `utilities/cli/` are generally configured via command line arguments.
63
58
64
59
For details on automating these steps into a repeatable build, see the [Bootstrap Guide](/doc/admin/Bootstrap_Guide.md).
65
60
@@ -68,7 +63,7 @@ For details on automating these steps into a repeatable build, see the [Bootstra
68
63
Delve uses CherryPy to host the Django web app. The `serve` management command starts the CherryPy server to serve the Delve web UI.
69
64
70
65
```bash
71
-
./dlv serve
66
+
python manage.py serve
72
67
```
73
68
74
69
The following settings in `settings.py` control the behavior of the CherryPy web server:
@@ -86,7 +81,7 @@ The following settings in `settings.py` control the behavior of the CherryPy web
86
81
-**DELVE_ACCEPTED_QUEUE_TIMEOUT**: How long to wait for an HTTP request to be accepted before timing out.
87
82
-**DELVE_SERVER_MAX_THREADS**: The max number of threads to spawn to handle web requests.
88
83
89
-
**NOTE**: The provided example-settings.py will check environment variables of the same name for all of these server-specific configurations as well as other settings.
84
+
**NOTE**: The provided `settings.py` will check environment variables of the same name for all of these server-specific configurations as well as other settings.
90
85
91
86
## Initial Configuration
92
87
After installation, perform the initial configuration to tailor Delve to your needs. Configuration settings are found in the `settings.py` file.
@@ -95,7 +90,7 @@ After installation, perform the initial configuration to tailor Delve to your ne
95
90
96
91
Delve Supervisor is a very simple service (currently only available on Windows) that is configured via the `DELVE_SERVICE_COMMANDS` value in `settings.py`.
97
92
98
-
`DELVE_SERVICE_COMMANDS` should be a list of commands to run when the Delve Supervisor service is started. These commands are supposed to run forever (like `./dlv serve` and `./dlv qcluster`). Each command will be run and if any of the processes die, that process will be restarted.
93
+
`DELVE_SERVICE_COMMANDS` should be a list of commands to run when the Delve Supervisor service is started. These commands are supposed to run forever (like `python manage.py serve` and `python manage.py qcluster`). Each command will be run and if any of the processes die, that process will be restarted.
99
94
100
95
### Installing Delve Supervisor Service on Windows
101
96
If you are on Windows, you can use the following command from the Delve directory to install the Delve supervisor service. Run the command from an Administrator Command Prompt:
- **Delve Documentation**: Included with every Delve documentation in the `doc` directory, available in the Delve Web UI (default http://127.0.0.1:8000/docs/) and in the [Github Repository](https://github.com/notesofcliff/delve/blob/main/src/home/doc/index)
55
+
- **Delve Documentation**: Included with every Delve documentation in the `doc` directory, available in the Delve Web UI (default http://127.0.0.1:8000/docs/) and in the [Github Repository](https://github.com/notesofcliff/delve/blob/main/doc/index.md)
56
56
- **Delve Community**: Refer our [Github Repository](https://github.com/notesofcliff/delve) for reporting issues, submitting feature requests, and contacting the project maintainers.
57
57
58
58
By following these troubleshooting techniques and utilizing available resources, you can effectively diagnose and resolve issues with your Delve instance.
0 commit comments