Workstations Service
This commit is contained in:
parent
9a2bd2bffd
commit
2efe5cd224
77 changed files with 978 additions and 2 deletions
89
docs/backend/workstations.md
Normal file
89
docs/backend/workstations.md
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
# 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
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue