We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d96060 commit fb726feCopy full SHA for fb726fe
config/systemd/fuoj-client.service
@@ -7,7 +7,7 @@ After=network.target
7
User=fuoj
8
Group=fuoj
9
WorkingDirectory=/usr/src/fuoj/fu.oj.client
10
-ExecStart=/usr/bin/npm run dev
+ExecStart=/usr/bin/npm run start
11
Environment=NODE_ENV=production
12
EnvironmentFile=/etc/fuoj/fuoj.env
13
Restart=always
fu.oj.client/package.json
@@ -4,8 +4,9 @@
4
"version": "0.0.0",
5
"type": "module",
6
"scripts": {
- "dev": "cross-env NODE_ENV=development vite",
+ "dev": "vite",
"build": "tsc -b && vite build",
+ "start": "tsc -b && vite build && vite preview",
"preview": "vite preview",
"lint": "eslint .",
"format": "prettier --write ."
0 commit comments