Skip to content

Commit

Permalink
sikerler
Browse files Browse the repository at this point in the history
  • Loading branch information
rojenarda committed Sep 23, 2024
1 parent 1858c93 commit 2be0937
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- run: cp /home/hasan/ituacm_website_backend/.env ./
- run: cp /home/hasan/ituacm_website_backend/.env ./backend/
- run: docker compose -f docker-compose.yml build --no-cache
- run: docker compose -f docker-compose.yml up -d
4 changes: 1 addition & 3 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,4 @@ COPY ./prestart.sh /app/

COPY ./tests-start.sh /app/

COPY ./app /app/app

COPY ./.env /app/.env
COPY ./app /app/app
11 changes: 11 additions & 0 deletions backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ def custom_generate_unique_id(route: APIRoute) -> str:

# Set all CORS enabled origins
if settings.BACKEND_CORS_ORIGINS:
settings.BACKEND_CORS_ORIGINS = [
'http://localhost',
'http://localhost:5173',
'https://localhost',
'https://localhost:5173',
'https://ituacm.com',
'https://api.ituacm.com',
'https://adminer.ituacm.com',
'https://admin.ituacm.com',
'http://admin.ituacm.com'
]
print(settings.BACKEND_CORS_ORIGINS)
app.add_middleware(
CORSMiddleware,
Expand Down

0 comments on commit 2be0937

Please sign in to comment.