cambios en produccion

master
Francisco Sandoval 2023-12-05 17:02:53 -03:00
parent bf8ff14fd1
commit 23c1d28c3a
2 changed files with 11 additions and 7 deletions

View File

@ -25,7 +25,9 @@ SECRET_KEY = 'django-insecure-r=1wxol#v6tkxk_(rr1@4)!0x&0^!*r-ulesdw^miid*b$btx2
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = [
'transporte-paradero.hz.kursor.cl'
]
# Application definition
@ -120,7 +122,7 @@ USE_TZ = True
CORS_ALLOWED_ORIGINS = [
"http://localhost:3001",
"https://transporte-paradero.hz.kursor",
"https://transporte-paradero.hz.kursor.cl",
# Agrega otros dominios permitidos aquí si es necesario
]

View File

@ -3,7 +3,7 @@
~~~yml
version: '3'
name: 'paradero'
name: paradero
services:
@ -11,7 +11,9 @@ services:
image: python:3.11-alpine
environment:
- PORT=4001
- DBNAME=/proyecto/db.sqlite3
- TRANSPORTE_API=https://transporte.hz.kursor.cl/api
- TRANSPORTE_USER=usuario1
- TRANSPORTE_PASS=usuario1
ports:
- 4001:4001
working_dir: /proyecto
@ -40,15 +42,15 @@ services:
- ./frontend:/app
environment:
- PORT=3001
- VITE_BACKEND=http://localhost:4001/rutaParadero
- VITE_BACKEND=/api
ports:
- 3001:3001
working_dir: /app
command: sh -c "
[ -d node_modules ] || (npm install) ;
[ -d node_modules ] || (npm install --legacy-peer-deps) ;
npm run dev
"
volumes:
venv:
~~~
~~~