From 3c797950ed04e55c09c99f176c44cb2d34a702f3 Mon Sep 17 00:00:00 2001 From: Setyo Nugroho Date: Fri, 5 Aug 2022 01:18:23 +0700 Subject: [PATCH] add update instruction --- README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/README.md b/README.md index 3d9b73f..1a109cc 100644 --- a/README.md +++ b/README.md @@ -176,3 +176,42 @@ Replace $yuyu_dir with the directory of where yuyu is located. Example ``` 1 0 1 * * /var/yuyu/bin/process_invoice.sh ``` + +# Updating Yuyu + +To update Yuyu manually, you can just pull the latest code + +```bash +git pull release/xx.xx +``` + +Activate the virtualenv. + +```bash +source env/bin/activate +``` + +Change the setting if needed. + +```bash +nano yuyu/local_settings.py +``` + +Update the python package. + +```bash +pip install -r requirements.txt +``` + +Run database migration + +```bash +python manage.py migrate +``` + +Restart all the service + +```bash +systemctl restart yuyu_api +systemctl restart yuyu_event_monitor +``` \ No newline at end of file