Updated readme and service
This commit is contained in:
@@ -3,12 +3,12 @@ Description=A simple chat interface and autoresponder for meshtastic
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/home/quinn/Projects/meshtastic/
|
WorkingDirectory=/home/quinn/Projects/Meshtastic-Webserver/
|
||||||
ExecStart=sudo /home/quinn/Projects/meshtastic/meshtastic/bin/python -m flask --app /home/quinn/Projects/meshtastic/app.py run --host=0.0.0.0 --port=80
|
ExecStart=sudo /home/quinn/Projects/Meshtastic-Webserver/meshtastic/bin/python -m flask --app /home/quinn/Projects/Meshtastic-Webserver/app.py run --host=0.0.0.0 --port=80
|
||||||
Restart=always
|
Restart=always
|
||||||
User=quinn
|
User=quinn
|
||||||
StandardOutput=append:/home/quinn/Projects/meshtastic/logs/meshtastic_system.log
|
StandardOutput=append:/home/quinn/Projects/Meshtastic-Webserver/logs/meshtastic_system.log
|
||||||
StandardError=append:/home/quinn/Projects/meshtastic/logs/meshtastic_system_error.log
|
StandardError=append:/home/quinn/Projects/Meshtastic-Webserver/logs/meshtastic_system_error.log
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
@@ -1,15 +1,16 @@
|
|||||||
# Create a Virtual Environment
|
# Create a Virtual Environment
|
||||||
Create the virtual environment and activate it
|
Create the virtual environment and activate it:
|
||||||
|
|
||||||
`python -m venv meshtastic && source meshtastic/bin/activate`
|
`python -m venv meshtastic && source meshtastic/bin/activate`
|
||||||
|
|
||||||
Install the requirements
|
Install the requirements: `pip install requirements.txt`
|
||||||
|
|
||||||
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
|
# Deploying Service Script Changes
|
||||||
Type the following commands:
|
Type the following commands:
|
||||||
|
|
||||||
`sudo cp /home/quinn/Projects/meshtastic/MeshtasticLogger.service /etc/systemd/system/ && sudo systemctl daemon-reload`
|
`sudo cp ~/Projects/Meshtastic-Webserver/MeshtasticLogger.service /etc/systemd/system/ && sudo systemctl daemon-reload`
|
||||||
|
|
||||||
To start the service run
|
To start the service run
|
||||||
`sudo systemctl start MeshtasticLogger`
|
`sudo systemctl start MeshtasticLogger`
|
||||||
|
|||||||
Reference in New Issue
Block a user