Some improvements for repository users
This commit is contained in:
parent
7864cc6467
commit
bd188a02bc
3 changed files with 24 additions and 4 deletions
|
|
@ -3,6 +3,14 @@
|
|||
import sys
|
||||
sys.path.insert(0, '../..')
|
||||
|
||||
import argparse
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('-p', '--port', type=int, default=5000,
|
||||
help='An alternative port where to run the server.')
|
||||
|
||||
from app import app, create_tables
|
||||
create_tables()
|
||||
app.run()
|
||||
|
||||
if __name__ == '__main__':
|
||||
args = argparse.parse_args()
|
||||
create_tables()
|
||||
app.run(port=args.port)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue