diff --git a/.env_example b/.env_example index a850fa5..c135f35 100644 --- a/.env_example +++ b/.env_example @@ -6,3 +6,10 @@ PUDB_PORT=8025 # TRYTOND information TRYTOND_VERSION=7.6 +TRYTOND_PORT_LIVE=8090 +TRYTON_ADMIN_EMAIL=admin@admin.co + +DB_HOSTNAME=db +POSTGRES_DB=tryton +POSTGRES_USER=tryton +POSTGRES_PASSWORD=SUp3r-pass*DB diff --git a/Rakefile b/Rakefile index 577a916..801ebbd 100644 --- a/Rakefile +++ b/Rakefile @@ -94,6 +94,31 @@ namespace :live do end end +desc 'Git - Submodules' +namespace :git do + + desc 'Iniciar y actualizar submodules' + task :submodules_init do + sh "git submodule init && git submodule update" + end + + desc 'Actualizar submodules, Ășltimos commits' + task :submodules_update do + sh "git submodule update --recursive --remote" + end + + desc 'Purgar submodules' + task :submodules_purge do + sh "git submodule deinit -f --all" + end + + desc 'Actualizar submodules a una rama especĂ­fica' + task :submodules_update_branch, [:branch] do |t, args| + branch = args[:branch] || 'main' # Usar 'main' como rama predeterminada si no se especifica + sh "git submodule foreach 'git checkout #{branch} && git pull origin #{branch}'" + end +end + def compose(*arg, compose: DOCKER_COMPOSE) sh "docker-compose -f #{compose} #{arg.join(' ')}" end diff --git a/requirements.txt b/requirements.txt index b39ed54..37b53b3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,4 +7,5 @@ pudb==2025.1 urwid==3.0.2 freezegun==1.5.1 psycopg2==2.9.10 +pycountry==24.6.1 diff --git a/web_app b/web_app index 6b30f61..7670838 160000 --- a/web_app +++ b/web_app @@ -1 +1 @@ -Subproject commit 6b30f617daa3dfcbd914effa06d368f9c6aa5506 +Subproject commit 76708382153e530a52d5b4561253fcfaed6b1735