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
To contribute to the MapSwipe back-end please create dedicated feature branches based on the `dev` branch. After the changes create a Pull Request of the `feature` branch into the `dev` branch on GitHub:
29
+
30
+
```bash
31
+
git checkout dev
32
+
git checkout -b featureA
33
+
# Hack away ...
34
+
git commit -am 'Describe changes.'
35
+
git push -u origin featureA
36
+
# Create a Pull Request from feature branch into the dev branch on GitHub.
37
+
```
38
+
39
+
> Note: If a bug in production (master branch) needs fixing before a new versions of MapSwipe Workers gets released (merging dev into master branch), a hotfix branch should be created. In the hotfix branch the bug should be fixed and then merged with the master branch (and also dev).
40
+
41
+
42
+
### Style Guide
43
+
44
+
This project uses [black](https://github.com/psf/black) and [flake8](https://gitlab.com/pycqa/flake8) to achieve a unified style.
45
+
46
+
Use [pre-commit](https://pre-commit.com/) to run `black` and `flake8` prior to any git commit. `pre-commit`, `black` and `flake8` should already be installed in your virtual environment since they are listed in `requirements.txt`. To setup pre-commit simply run:
47
+
48
+
```
49
+
pre-commit install
50
+
```
51
+
52
+
From now on `black` and `flake8` should run automatically whenever `git commit` is executed.
23
53
24
54
25
55
## License
26
56
27
57
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details
Copy file name to clipboardExpand all lines: docs/source/installation.md
+5-17Lines changed: 5 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -251,28 +251,16 @@ certbot certonly \
251
251
--non-interactive
252
252
```
253
253
254
+
> Note: Certbot systemd timer for renewal of certificate will not work for standalone certificates because the service (docker nginx) which occupies port 80 has to be stopped before renewal.
254
255
255
-
Enable and start Certbot systemd timer for renewal of certificates:
256
+
For certificate renewal a cronjob is used:
256
257
257
258
```bash
258
-
systemctl enable certbot.timer
259
-
systemctl start certbot.timer
260
-
# To check if certbot.timer is enabled run:
261
-
systemctl list-units --type timer | grep certbot
262
-
```
263
-
264
-
Add renewal post hook to reload nginx after certificate renwal:
0 commit comments