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
Copy file name to clipboardExpand all lines: documentation/Docker-development-environment.md
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,28 @@ Multiple services can be specified like so:
64
64
65
65
Using a Docker runtime with more memory and CPU cores improves rebuild/restart speed.
66
66
67
+
### Auto reload
68
+
69
+
Once the development environment is up and running it will autotically rebuild/restart/reload when certain parts of the source code change. Currently changes to the following files will be detected and acted upon:
70
+
71
+
- Python sources in `checks/`, `internetnl/`, `interface/`: will reload `app` and `worker*` using Django autoreload, when needed open browser sessions will reload.
72
+
- CSS files in `frontend/css/`: will rebuild CSS files and open browser sessions will reload.
73
+
- Django template files (`.html`) in `interface/templates/`: open browser sessions will reload.
74
+
75
+
### Foreground development
76
+
77
+
Instead of running in the background the application stack can also be started in foreground mode using the command:
78
+
79
+
make develop
80
+
81
+
This convenience command will build all relevant services, start the entire stack and show log output for the most relevant services. The Docker Compose application will keep running in the foreground. Terminating it (with `ctrl-c`) will shutdown all running services and bring down the entire application stack.
82
+
83
+
#### Frontend development
84
+
85
+
When only developing on frontend parts of the application (eg: `html`, `css`, `javascript`, Django templates/views), a smaller subset of the application can be started using:
86
+
87
+
make develop_frontend
88
+
67
89
### Running/debugging individual probes
68
90
69
91
It is possible to run individual probes with debug logging using a manage command. This provides a quick way to iterate over changes regarding test/probe code without having to go through the web interface. For this run the following command:
0 commit comments