Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (18 sloc) 554 Bytes
import os
import sys
if 'CALEBCC_CONFIG_MODULE' not in os.environ:
os.environ['CALEBCC_CONFIG_MODULE'] = 'calebcc.env.dev'
from bottle import run, debug
from calebcc import app, parser
def main(argv):
# Very basic argument processing. Handle --parse, otherwise
# run the server.
if '--parse' in argv:
argv.pop(argv.index('--parse'))
print "Parsing docs..."
parser.run()
else:
debug(True)
run(app, host='localhost', port=8080, reloader=True)
if __name__ == '__main__':
main(sys.argv)