#!/usr/bin/env python3

import sys, os

from accelerando.core import *
from accelerando.util.instance import StandaloneHTTPInstance

if __name__ == '__main__':
	if len(sys.argv) < 2:
		print("usage:", sys.argv[0], "start|stop|restart")
	else:
		application_context = load_application()
			
		StandaloneHTTPInstance(application_context).run_forever()
