2023-10-27 05:18:26 +00:00
|
|
|
import django
|
2023-10-10 12:51:06 +00:00
|
|
|
import uvicorn
|
2023-10-27 05:18:26 +00:00
|
|
|
from django.core.management import call_command
|
2023-10-10 12:51:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
def run():
|
2023-10-27 05:18:26 +00:00
|
|
|
django.setup()
|
2023-10-28 15:45:14 +00:00
|
|
|
call_command("collectstatic", "--clear", "--noinput")
|
2023-10-28 15:38:56 +00:00
|
|
|
call_command("migrate")
|
2023-10-10 19:35:30 +00:00
|
|
|
uvicorn.run("mwmbl.asgi:application", host="0.0.0.0", port=5000)
|
2023-10-10 12:51:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
run()
|