From 590e18e994d2a7a577dfdeb9c385c8f8ba7f06dc Mon Sep 17 00:00:00 2001 From: minguezsanzjuanjose Date: Fri, 17 Apr 2026 23:01:36 +0200 Subject: [PATCH] fix: forzar LF en entrypoint.sh + environments postman + limpiar variables coleccion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .gitattributes: añadir '*.sh text eol=lf' para evitar CRLF en Windows - deployments/entrypoint.sh: renormalizado a LF - postman_environments.json: entornos LOCAL/DEV/PROD en un único fichero - postman_collection.json: eliminadas variables por defecto (vienen del entorno) --- .gitattributes | 3 +++ postman_collection.json | 28 +--------------------------- postman_environments.json | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 27 deletions(-) create mode 100644 postman_environments.json diff --git a/.gitattributes b/.gitattributes index dfe0770..b5b15a7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,5 @@ # Auto detect text files and perform LF normalization * text=auto + +# Shell scripts: forzar LF siempre (evita CRLF en Windows que rompe Docker) +*.sh text eol=lf diff --git a/postman_collection.json b/postman_collection.json index de9ead3..7ad50a9 100644 --- a/postman_collection.json +++ b/postman_collection.json @@ -5,33 +5,7 @@ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_postman_id": "django-core-base-collection" }, - "variable": [ - { - "key": "base_url", - "value": "http://localhost:8000", - "type": "string" - }, - { - "key": "access_token", - "value": "", - "type": "string" - }, - { - "key": "refresh_token", - "value": "", - "type": "string" - }, - { - "key": "username", - "value": "admin", - "type": "string" - }, - { - "key": "password", - "value": "admin", - "type": "string" - } - ], + "variable": [], "item": [ { "name": "Auth", diff --git a/postman_environments.json b/postman_environments.json new file mode 100644 index 0000000..a80c0d6 --- /dev/null +++ b/postman_environments.json @@ -0,0 +1,35 @@ +{ + "local": { + "id": "ftt19d5vxuj", + "v": 2, + "name": "LOCAL", + "variables": [ + { "key": "base_url", "secret": false, "initialValue": "http://localhost:8000", "currentValue": "http://localhost:8000" }, + { "key": "username", "secret": false, "initialValue": "admin", "currentValue": "admin" }, + { "key": "password", "secret": false, "initialValue": "admin", "currentValue": "admin" }, + { "key": "access_token", "secret": false, "initialValue": "", "currentValue": "" } + ] + }, + "dev": { + "id": "x8jh10qysfo", + "v": 2, + "name": "DEV", + "variables": [ + { "key": "base_url", "secret": false, "initialValue": "https://dev.v-encore-lab.com", "currentValue": "https://dev.v-encore-lab.com" }, + { "key": "username", "secret": false, "initialValue": "admin", "currentValue": "admin" }, + { "key": "password", "secret": false, "initialValue": "admin", "currentValue": "admin" }, + { "key": "access_token", "secret": false, "initialValue": "", "currentValue": "" } + ] + }, + "prod": { + "id": "3ckrklvkf27", + "v": 2, + "name": "PROD", + "variables": [ + { "key": "base_url", "secret": false, "initialValue": "https://v-encore-lab.com", "currentValue": "https://v-encore-lab.com" }, + { "key": "username", "secret": false, "initialValue": "admin", "currentValue": "admin" }, + { "key": "password", "secret": false, "initialValue": "admin", "currentValue": "admin" }, + { "key": "access_token", "secret": false, "initialValue": "", "currentValue": "" } + ] + } +}