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
- Unix, Windows, and MacOS [installation and use guide for venv](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/).
44
44
- Your operating system might have some prerequisites here. On ubuntu, you may need:
45
45
```sh
46
-
sudo apt-install python3-pip python3.12-venv
46
+
sudo aptinstall python3-pip python3.12-venv
47
47
```
48
48
1. Set up the virtual environment and run it. Run these commands in the
49
49
directory where you've cloned the repository. (Adapt as needed for your shell
@@ -79,8 +79,6 @@ When you're done with the virtual environment, you can type `deactivate` to leav
79
79
python -m build && \
80
80
pip install dist/*.whl
81
81
```
82
-
-NOTE: In the current development stage of the project, we may exhibit code changes without change of the version number. In case you update your local code, this build process has to be repeated, but with the last command modified to ```pip install dist/*.whl --force-reinstall```
83
-
- In the file ```soundcork/gunicorn_conf.py```, replace the binding address 127.0.0.1 by the IP address of your server
84
82
- If using systemd, make a copy of `soundcork.service.example`, named `soundcork.service`
85
83
- modify the placeholder strings appropriately
86
84
- then mv to systemd and enable.
@@ -90,6 +88,14 @@ When you're done with the virtual environment, you can type `deactivate` to leav
90
88
sudo systemctl enable soundcork && \
91
89
sudo systemctl start soundcork
92
90
```
91
+
- To update the server, rebuild the project and restart. NOTE: In the current development stage of the project, we code changes may happen without a change of the version number. In these cases, or if you update your local code yourself, this build process has to be repeated, but with the last command modified to ```pip install dist/*.whl --force-reinstall```:
92
+
```
93
+
git pull
94
+
pip install build && \
95
+
python -m build && \
96
+
pip install dist/*.whl --force-reinstall
97
+
sudo systemctl restart soundcork
98
+
```
93
99
94
100
You can verify the server by checking the `/docs` endpoint at your URL.
0 commit comments