mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-08-17 21:25:47 +02:00
18 lines
640 B
Python
18 lines
640 B
Python
#coding: utf-8
|
|
# +-------------------------------------------------------------------
|
|
# | 宝塔Linux面板
|
|
# +-------------------------------------------------------------------
|
|
# | Copyright (c) 2015-2099 宝塔软件(http://bt.cn) All rights reserved.
|
|
# +-------------------------------------------------------------------
|
|
# | Author: 黄文良 <287962566@qq.com>
|
|
# +-------------------------------------------------------------------
|
|
from os import environ
|
|
from BTPanel 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)
|