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 run as a background service #755

Open
RJM1996 opened this issue Jan 16, 2023 · 2 comments
Open

How to run as a background service #755

RJM1996 opened this issue Jan 16, 2023 · 2 comments

Comments

@RJM1996
Copy link

RJM1996 commented Jan 16, 2023

Description

希望作为后台服务运行,关闭窗口时也能运行。
I want it to run as a background service and run when the window is closed.
目前我使用 pm2 可以实现:
Currently I can do this using pm2
pm2 serve dist

image

Why

I want it to run as a background service and run when the window is closed.

Alternatives

I want it to run as a background service and run when the window is closed.

@RepComm
Copy link

RepComm commented Jan 20, 2023

Will screen command work for you?
You could open up a screen and launch serve, then detach from the screen with CTRL-A then CTRL-D

@squidjam
Copy link

But CTRL-A and CTRL-D won't work on command line for CI/CD, right?

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

3 participants