Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set up the corresponding startup service #405

Open
Ultramarine1939-syujie opened this issue Nov 16, 2023 · 0 comments
Open

How to set up the corresponding startup service #405

Ultramarine1939-syujie opened this issue Nov 16, 2023 · 0 comments

Comments

@Ultramarine1939-syujie
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant