Skip to content

Commit

Permalink
refactor file layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Highfire1 committed Dec 30, 2023
1 parent ca47f02 commit 3cae914
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .dockerignore

This file was deleted.

3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt --no-cache-dir option

# copy all files
COPY api.py api.py
COPY /python /python
COPY main.py main.py
COPY discord.py discord.py

# run code
CMD ["python3", "main.py"]
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import gzip

from LangaraCourseInfo import Database, Utilities
from discord import send_webhook
from python.discord import send_webhook

import os
from dotenv import load_dotenv
Expand Down Expand Up @@ -76,7 +76,7 @@ def refreshSemester(u:Utilities, discord_url:str = None) -> None:
# Launch web server
def start_uvicorn():
print("Launching uvicorn.")
uvicorn.run("api:app", host="0.0.0.0", port=5000)
uvicorn.run("python.api:app", host="0.0.0.0", port=5000)


def start_refreshing():
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 3cae914

Please sign in to comment.