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

docs: updated prod related content

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