Commit 66a3ce9a authored by Imane Misrar's avatar Imane Misrar

docs: updated prod related content

parent 050bda0f
......@@ -34,43 +34,44 @@ sudo su - rex-dri
```bash
cd ~/apps/rex-dri
make down_prod
sudo make down_prod
```
- Clean the useless docker volumes
```bash
# Check if you have randomly named volumes:
docker volume ls
sudo docker volume ls
# rm ONLY the one with random names
# docker volume rm ...
# sudo docker volume rm ...
```
- It's always a good idea to keep a VM up-to-date
```bash
service docker stop
apt udpate
apt upgrade
service docker start
sudo service docker stop
sudo apt update
sudo apt upgrade
sudo apt autoremove
sudo service docker start
```
- Restart the API on top of the DSI data base
```bash
cd ~/apps/api-db-utc
make prod
sudo make prod
# Check it's running
curl localhost:8083/api/courses/chehabfl
sudo curl localhost:8083/api/courses/chehabfl
```
- Update the rex-dri repository
```bash
cd ~/apps/rex-dri
git pull
sudo git pull
# You should be on the master branch
git status
sudo git status
```
- Restart the website
......@@ -78,7 +79,7 @@ git status
```bash
# this will take several minutes to execute
# the frontend is going to be built, etc.
make prod
sudo make prod
```
- Update the remote data (to check that this important part works)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment