ArduPilot / UAVLogViewer

An online viewer for UAV log files
GNU General Public License v3.0
142 stars 76 forks source link

How to set up the corresponding startup service #405

Open Ultramarine1939-syujie opened 1 year ago

Ultramarine1939-syujie commented 1 year ago

I used the following startup service to realize the self-starting of localized web pages.

[Unit]
Description=Uavlogviewer Server Service
After=network.target

[Service]
Environment=PORT=8080
WorkingDirectory=/home/ubuntu/repos/uavlog-viewer
ExecStart=/usr/bin/npm run dev
Restart=on-failure
user=ubuntu

[Install]
WantedBy=multi-user.target

This worked fine on my laptop, but when I ported them to the Raspberry Pi, it worked but took almost half an hour to compile. Is there any way to directly read the previously compiled files?