Initial YakPanel commit
This commit is contained in:
17
runserver.py
Normal file
17
runserver.py
Normal file
@@ -0,0 +1,17 @@
|
||||
#coding: utf-8
|
||||
# +-------------------------------------------------------------------
|
||||
# | YakPanel
|
||||
# +-------------------------------------------------------------------
|
||||
# | Copyright (c) 2015-2099 YakPanel(www.yakpanel.com) All rights reserved.
|
||||
# +-------------------------------------------------------------------
|
||||
# | Author: hwliang <hwl@yakpanel.com>
|
||||
# +-------------------------------------------------------------------
|
||||
from os import environ
|
||||
from YakPanel import app,sys
|
||||
|
||||
if __name__ == '__main__':
|
||||
f = open('data/port.pl')
|
||||
PORT = int(f.read())
|
||||
HOST = '0.0.0.0'
|
||||
f.close()
|
||||
app.run(host=HOST,port=PORT)
|
||||
Reference in New Issue
Block a user