frasan's picture
changed files
7f8175c
raw
history blame
744 Bytes
import argparse
import logging
import os
from dotenv import load_dotenv
load_dotenv()
if __name__ == '__main__':
args_parse = argparse.ArgumentParser(description="LibraryMed")
args_parse.add_argument("--local", help="Run interface v0.1.0 by the fellows", action="store_true")
args = args_parse.parse_args()
port = os.getenv("PORT") or 80
if args.local:
from local.app_local import app
logging.info("Run LibraryMed interface v0.1.0 developed by the fellows")
app.run(debug=True, host="0.0.0.0", port=port)
else:
from librarymed.app_librarymed import app
logging.info("Run LibraryMed interface v0.2.0 developed by Kromin")
app.run(debug=True, host="0.0.0.0", port=port)