Windows NSSM
These instructions configure Non-Sucking Service Manager (NSSM) to automatically start Conreq as a Windows service.
A traditional Windows installer is not yet available.
Software Required¶
- Install Python 3.11+
- Make sure to select "Add Python 3.x to PATH" during installation.
- Easiest if this is the only version of python on your computer
- Steps below will not work with NSSM if using the "Windows App Store" version of Python.
- Install Visual Studio C++ (Within this installer, navigate to C++ Build Tools. Select MSVC and Windows 10 SDK)
- Download NSSM
Installation¶
- Create the folder
C:\Program Files\Conreq
- Use this folder to follow steps setting up a Conreq environment, excluding steps involving
python manage.py run_conreq
. - Unzip NSSM in a separate directory where you can permanently keep it (such as
C:\Program Files\NSSM
). - Open a terminal within your NSSM directory as administrator.
- Open NSSM by typing
.\win64\nssm.exe install Conreq
- Under the Application tab, browse to the path of your Conreq
venv
.- For example:
C:\Program Files\Conreq\.venv\Scripts\python.exe
- For example:
- Under the Application tab, browse to the path of your Conreq repository.
- For example:
C:\Program Files\Conreq\
- For example:
- Under the Application tab, set "Arguments" to
manage.py run_conreq
- Click "Install Service".
- In your terminal, type
.\win64\nssm.exe start Conreq
.- You can check to make sure its running as a service by running
nssm status Conreq
- You can check to make sure its running as a service by running
- Open any internet browser and navigate to
http://127.0.0.1:7575/