File tree 3 files changed +12
-4
lines changed
3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 13
13
steps :
14
14
- name : Checkout
15
15
uses : actions/checkout@v4
16
- - run : cp /home/hasan/ituacm_website_backend/.env ./
17
16
- run : cp /home/hasan/ituacm_website_backend/.env ./backend/
18
17
- run : docker compose -f docker-compose.yml build --no-cache
19
18
- run : docker compose -f docker-compose.yml up -d
Original file line number Diff line number Diff line change @@ -25,6 +25,4 @@ COPY ./prestart.sh /app/
25
25
26
26
COPY ./tests-start.sh /app/
27
27
28
- COPY ./app /app/app
29
-
30
- COPY ./.env /app/.env
28
+ COPY ./app /app/app
Original file line number Diff line number Diff line change @@ -22,6 +22,17 @@ def custom_generate_unique_id(route: APIRoute) -> str:
22
22
23
23
# Set all CORS enabled origins
24
24
if settings .BACKEND_CORS_ORIGINS :
25
+ settings .BACKEND_CORS_ORIGINS = [
26
+ 'http://localhost' ,
27
+ 'http://localhost:5173' ,
28
+ 'https://localhost' ,
29
+ 'https://localhost:5173' ,
30
+ 'https://ituacm.com' ,
31
+ 'https://api.ituacm.com' ,
32
+ 'https://adminer.ituacm.com' ,
33
+ 'https://admin.ituacm.com' ,
34
+ 'http://admin.ituacm.com'
35
+ ]
25
36
print (settings .BACKEND_CORS_ORIGINS )
26
37
app .add_middleware (
27
38
CORSMiddleware ,
You can’t perform that action at this time.
0 commit comments