89 lines
No EOL
977 B
Markdown
89 lines
No EOL
977 B
Markdown
# 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
|
|
``` |