chore: rake live:up ejecuta en conjunto rake tdd
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Jovany Leandro G.C bit4bit@riseup.net 2023-08-10 09:41:29 -05:00
parent 7b7286c50c
commit 55b7aada89
4 changed files with 6 additions and 5 deletions

View File

@ -1,2 +1,2 @@
trytond: trytond -d ${DB_NAME} --dev -v -c $SCRIPT_DIR/trytond.cfg
trytond: while true; do trytond -d ${DB_NAME} --dev -v -c $SCRIPT_DIR/trytond.cfg; done
monitor: python3 $SCRIPT_DIR/dev.py

View File

@ -1,4 +1,5 @@
# script para refrescar cambios de xml del modulo de tryton
import sys
import os
import logging
@ -18,9 +19,9 @@ def _main():
(_, type_names, path, filename) = event
(_, ext) = os.path.splitext(filename)
if ext in ['.py', '.xml']:
if ext in ['.py', '.xml', '.cfg']:
if os.system("trytond-admin -d {} -u {}".format(DB_NAME, MODULE_NAME)) != 0:
raise Exception("fallo trytond-admin")
print("fallo trytond-admin", file=sys.stderr)
logging.info("ACTUALIZADO TRYTOND POR CAMBIO DE ARCHIVO %s", filename)

View File

@ -47,7 +47,7 @@ namespace :live do
desc 'monitorear salida'
task :tail do
compose('logs', '-f', 'app.dev', compose: 'compose.yml')
compose('logs', '-f', 'live.dev', compose: 'compose.yml')
end
desc 'detener entorno'

View File

@ -2,7 +2,7 @@ version: '3.9'
include:
- compose.base.yml
services:
app.dev:
live.dev:
build:
context: .
depends_on: