部署:添加部署配置(nginx、systemd、Dockerfile),并改进会话列表与头像显示
This commit is contained in:
14
deploy/systemd/chat-backend.service
Normal file
14
deploy/systemd/chat-backend.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Chat backend service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=www-data
|
||||
WorkingDirectory=/var/www/chat/backend
|
||||
ExecStart=/usr/bin/node ./dist/index.js
|
||||
Restart=on-failure
|
||||
Environment=NODE_ENV=production
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user