Files
Meshtastic-Webserver/README.md
Cynopolis 976d2453a2 Added an installer script
* Added an installer script

* Finished deployment script

---------

Co-authored-by: Cynopolis <megaveganzombie@gmail.com>
2025-04-02 11:54:23 -04:00

32 lines
1015 B
Markdown

# Create a Virtual Environment
Create the virtual environment and activate it:
`python -m venv meshtastic && source meshtastic/bin/activate`
Install the requirements: `pip install requirements.txt`
Try it out before deploying it as a service: `flask run --host=0.0.0.0 --port=5000`
# Deploying Service Script Changes
Type the following commands:
`sudo cp ~/Projects/Meshtastic-Webserver/MeshtasticLogger.service /etc/systemd/system/ && sudo systemctl daemon-reload`
To start the service run
`sudo systemctl start MeshtasticLogger`
You can get the status of the service by running:
`sudo systemctl status MeshtasticLogger`
And you can stop the service by running:
`sudo systemctl stop MeshtasticLogger`
To have the service start on boot run:
`systemctl enable MeshtasticLogger`
# Automatic Deployment
Make sure the bash script is executable by running: `chmod u+x install.sh`
Make certain you are actually in the Meshtastic-Webserver Directory or this will fail. Run the script with: `sudo ./install.sh`