diff --git a/debug_server.py b/server.py similarity index 92% rename from debug_server.py rename to server.py index 955c7e3..accfbd2 100755 --- a/debug_server.py +++ b/server.py @@ -19,12 +19,11 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -import sys +from web import create_application +app = create_application() if __name__ == '__main__': - from web import create_application - - app = create_application() if app: + import sys app.run(host = sys.argv[1] if len(sys.argv) > 1 else None, debug = True)