Commit 39761e09 authored by J. Fernando Sánchez's avatar J. Fernando Sánchez

Fix for heroku

parent 03eb38c1
web: gunicorn app:app --log-file=-
web: python -m senpy --host 0.0.0.0 --port $PORT --default-plugins
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment