mirror of https://github.com/CIRCL/lookyloo
15 lines
476 B
Python
Executable File
15 lines
476 B
Python
Executable File
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from subprocess import Popen
|
|
from lookyloo.helpers import get_homedir
|
|
|
|
if __name__ == '__main__':
|
|
website_dir = get_homedir() / 'website'
|
|
Popen([str(website_dir / '3rdparty.sh')], cwd=website_dir)
|
|
try:
|
|
Popen(['gunicorn', '--worker-class', 'eventlet', '-w', '10', '-b', '0.0.0.0:5100', 'web:app'],
|
|
cwd=website_dir).communicate()
|
|
except KeyboardInterrupt:
|
|
print('Stopping gunicorn.')
|