#!/home/username/virtualenv/project_folder/3.7/bin/python3
import sys
import os

# Add your project directory to the sys.path
project_home = '/home/username/project_folder'
if project_home not in sys.path:
    sys.path.insert(0, project_home)

# Set environment variables
os.environ['FLASK_ENV'] = 'production'

from flup.server.fcgi import WSGIServer
from app import create_app

if __name__ == '__main__':
    app = create_app()
    WSGIServer(app).run()