Skip to content

Commit

Permalink
Update start_server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ivozilkenat authored Apr 3, 2024
1 parent 2d372dd commit 8af5102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ def start_server(path=os.path.join(os.getcwd(), "server")):
print("Activating the virtual environment")
if sys.platform == "win32":
# Windows requires a different command to activate the virtual environment
run_command(f'cd {path} && .\\venv\\Scripts\\activate && uvicorn main:app --port=3001')
run_command(f'cd {path} && .\\venv\\Scripts\\activate && uvicorn main:app --port=81')
else:
# Linux and macOS use this command
run_command(f'cd {path} && . venv/bin/activate && uvicorn main:app --port=3001')
run_command(f'cd {path} && . venv/bin/activate && uvicorn main:app --port=81')

if __name__ == "__main__":
start_server()

0 comments on commit 8af5102

Please sign in to comment.