diff --git a/.env.development b/.env.development index 3566c99..6449b0b 100644 --- a/.env.development +++ b/.env.development @@ -5,4 +5,4 @@ DB_PASSWORD=postgres DB_NAME=transportador SECRET_KEY=admin APP_PORT=5000 -APP_HOST=127.0.0.1 \ No newline at end of file +TRACCAR_API=https://traccar.potus.ar/api diff --git a/.env.devops b/.env.devops index a18dc40..5af26f6 100644 --- a/.env.devops +++ b/.env.devops @@ -5,4 +5,5 @@ DB_NAME=transportador SECRET_KEY=admin APP_PORT=5001 - APP_HOST=192.168.1.14 \ No newline at end of file + APP_HOST=192.168.1.14 + TRACCAR_API=https://traccar.potus.ar/api \ No newline at end of file diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 8a94a47..e342407 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -45,5 +45,6 @@ jobs: SECRET_KEY: ${{ secrets.APP_SECRET_KEY }} APP_PORT: ${{ secrets.APP_PORT }} APP_HOST: ${{ secrets.APP_HOST }} + TRACCAR_API: ${{ secrets.TRACCAR_API }} ENV: staging run: docker-compose -f docker-compose-stage.yml -p g4-api up -d diff --git a/docker-compose-stage.yml b/docker-compose-stage.yml index 4540fc8..6e65371 100644 --- a/docker-compose-stage.yml +++ b/docker-compose-stage.yml @@ -15,6 +15,7 @@ services: SECRET_KEY: ${SECRET_KEY} APP_PORT: ${APP_PORT} APP_HOST: ${APP_HOST} + TRACCAR_API: ${TRACCAR_API} ENV: ${ENV} restart: unless-stopped