chore: add ansible backend docker frontend-prep
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Frontend React Production (Vite)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User={{ user_owner }}
|
||||
Group={{ user_owner }}
|
||||
WorkingDirectory={{ nginx_frontend_path }}
|
||||
ExecStart=/usr/bin/npm run preview -- --port {{ frontend_port }}
|
||||
Restart=always
|
||||
Environment=NODE_ENV=production
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user