1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-12-25 22:48:11 +00:00

Fix for heroku

This commit is contained in:
J. Fernando Sánchez 2016-03-02 05:20:08 +01:00
parent 03eb38c12d
commit 39761e0922
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
web: gunicorn app:app --log-file=-
web: python -m senpy --host 0.0.0.0 --port $PORT --default-plugins

View File

@ -32,6 +32,8 @@ import senpy
patch_all(thread=False)
SERVER_PORT = os.environ.get("PORT", 5000)
def main():
parser = argparse.ArgumentParser(description='Run a Senpy server')
parser.add_argument('--level',
@ -56,7 +58,7 @@ def main():
parser.add_argument('--port',
'-p',
type=int,
default=5000,
default=SERVER_PORT,
help='Port to listen on.')
parser.add_argument('--plugins-folder',
'-f',