instant-workstation/docs/backend/workstations.md

89 lines
977 B
Markdown
Raw Normal View History

2026-08-29 18:18:56 +03:00
# Workstations
``` bash
cd /opt/instant-workstation/backend/workstations
```
## Installation
=== "Fedora"
``` bash
sudo dnf install nodejs npm
```
=== "Ubuntu"
``` bash
sudo apt install nodejs npm
```
``` bash
npm ci
```
``` bash
sudo ln -s /opt/instant-workstation/infrastructure/systemd/workstations.service /etc/systemd/system/.
```
``` bash
sudo systemctl daemon-reload
```
``` bash
sudo systemctl enable workstations
```
``` bash
sudo systemctl start workstations
```
``` bash
sudo systemctl status workstations
```
## Updates
### Packages
``` bash
npm outdated
```
``` bash
npm update
```
``` bash
git add package.json package-lock.json
```
``` bash
git commit -m "Workstations Service: Package Updates"
```
``` bash
git push
```
### Service
``` bash
git pull
```
``` bash
npm ci
```
``` bash
sudo systemctl daemon-reload
```
``` bash
sudo systemctl restart workstations
```
``` bash
sudo systemctl status workstations
```