Skip to content

Commit

Permalink
moved host and port settings to cconfig.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LanceMaverick committed Feb 7, 2017
1 parent 6be1bcb commit c28f5a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ admins = [
#('name', telgram_id),
]

#web server config
host = '0.0.0.0'
port = 8000

__doc__ = """This is sample documentation. Please update in your config.py!

Current plugins enabled: {}""".format(beards)
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def main(config):
from skybeard.server import app

handler = app.make_handler()
f = loop.create_server(handler, '0.0.0.0', 8080)
f = loop.create_server(handler, config.host, config.port)
srv = loop.run_until_complete(f)
print('serving on', srv.sockets[0].getsockname())

Expand Down

0 comments on commit c28f5a8

Please sign in to comment.