mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 03:18:29 +08:00
16 lines
310 B
Python
16 lines
310 B
Python
import os
|
|
import sys
|
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
|
from mishards import (settings, create_app)
|
|
|
|
|
|
def main():
|
|
server = create_app(settings.DefaultConfig)
|
|
server.run(port=settings.SERVER_PORT)
|
|
return 0
|
|
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main())
|