cambios en produccion
parent
bf8ff14fd1
commit
23c1d28c3a
|
@ -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
|
||||
]
|
||||
|
||||
|
|
12
readme.md
12
readme.md
|
@ -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:
|
||||
~~~
|
||||
~~~
|
||||
|
|
Loading…
Reference in New Issue