Skip to content

Commit

Permalink
Merge pull request #231 from dataforgoodfr/apply_deployment_partial
Browse files Browse the repository at this point in the history
mod: apply deployment mods main => app
  • Loading branch information
rv2931 authored Oct 30, 2024
2 parents 8c276d9 + c7cd94d commit ed1cfd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
17 changes: 1 addition & 16 deletions backend/bloom/main.py → backend/bloom/app.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,13 @@
from fastapi import FastAPI, APIRouter, Depends, HTTPException
from fastapi import FastAPI
from fastapi import Request
from fastapi.security import APIKeyHeader

from bloom.routers.v1.cache import router as router_cache_v1
from bloom.routers.v1.metrics import router as router_metrics_v1
from bloom.routers.v1.vessels import router as router_vessels_v1
from bloom.routers.v1.ports import router as router_ports_v1
from bloom.routers.v1.zones import router as router_zones_v1
from bloom.dependencies import ( DatetimeRangeRequest,
PaginatedRequest,OrderByRequest,
paginate,PagedResponseSchema,PageParams,
X_API_KEY_HEADER,check_apikey)

import redis
import json
from bloom.config import settings
from bloom.container import UseCases
from bloom.domain.vessel import Vessel
from bloom.logger import logger

rd = redis.Redis(host=settings.redis_host, port=settings.redis_port, db=0)

from datetime import datetime
import time

API_PREFIX_V1='/api/v1'

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
- -c
- |
echo "Starting Scheduler" &&
service cron start && uvicorn bloom.main:app --host 0.0.0.0 --reload
service cron start && uvicorn bloom.app:app --host 0.0.0.0 --reload
volumes:
- ./:/project/
- ./data:/project/data
Expand Down

0 comments on commit ed1cfd8

Please sign in to comment.