[ADD] Justfile to allow updating and installing with just

This commit is contained in:
Jorge Enrique Gómez Gómez 2025-05-12 18:49:20 -05:00
parent 62aa0a9e0f
commit 75af325aab

28
justfile Normal file
View File

@ -0,0 +1,28 @@
# justfile to update code, install it to /opt, and control Odoo service
set shell := ['bash', '-cu']
default:
just --list
update-custom:
./update_from_repo.sh -o custom
install-custom:
sudo ./install_odoo_code.sh -o custom
stop-odoo:
sudo systemctl stop odoo.service
start-odoo:
sudo systemctl start odoo.service
restart-odoo:
sudo systemctl restart odoo.service
update-and-install: update-custom install-custom
update-install-and-stop: update-custom install-custom stop-odoo
update-install-and-restart: update-custom install-custom restart-odoo