#!/usr/bin/env python3
from app import app
from app import db
from random import randint
from app.models import Review, Course, Student, User
import sys

debug = False
for arg in sys.argv:
    if arg == '-d':
        debug = True

def start():
    if debug:
        db.create_all()
        app.run(port=8080)
    else:
        app.run(port=3000)



if __name__ == '__main__':
    start()

#!/usr/bin/env python3
from app import app
from app import db
from random import randint
from app.models import Review, Course, Student, User
import sys

debug = False
for arg in sys.argv:
    if arg == '-d':
        debug = True

def start():
    if debug:
        db.create_all()
        app.run(port=8080, processes=16)
    else:
        app.run(port=3000, processes=16)



if __name__ == '__main__':
    start()

use up to 16 processes instead of single process