#!/usr/bin/env python3


import sys
from os.path import abspath
from os.path import dirname
import app

sys.path.insert(0, abspath(dirname(__file__)))

# 这里变了骚年
application = app.configured_app()


# print(dirname(__file__))
# print(abspath(dirname(__file__)))
# print(abspath(__file__))
# /Users/xxx/PycharmProjects/PythonWeb/server_normal_Flask
# /Users/xxx/PycharmProjects/PythonWeb/server_normal_Flask
# /Users/xxx/PycharmProjects/PythonWeb/server_normal_Flask/wsgi.py


# 建立一个软连接 for newapp.conf
# ln -s /root/PythonWeb/server_normal_Flask/newapp.conf /etc/supervisor/conf.d/newapp.conf
# 建立一个软连接 for newapp.nginx
# ln -s /root/PythonWeb/server_normal_Flask/newapp.nginx /etc/nginx/sites-enabled/newapp

#!/usr/bin/env python3


import sys
from os.path import abspath
from os.path import dirname
import app

sys.path.insert(0, abspath(dirname(__file__)))

# 这里变了骚年
application = app.configured_app()


# print(dirname(__file__))
# print(abspath(dirname(__file__)))
# print(abspath(__file__))
# /Users/xxx/PycharmProjects/PythonWeb/server_normal_Flask
# /Users/xxx/PycharmProjects/PythonWeb/server_normal_Flask
# /Users/xxx/PycharmProjects/PythonWeb/server_normal_Flask/wsgi.py


# 建立一个软连接 for newapp.conf
# ln -s /root/PythonWeb/server_normal_Flask/newapp.conf /etc/supervisor/conf.d/newapp.conf
# 建立一个软连接 for newapp.nginx
# ln -s /root/PythonWeb/server_normal_Flask/newapp.nginx /etc/nginx/sites-enabled/newapp

#!/usr/bin/env python3 # 这里变了骚年 # print(dirname(__file__)) # print(abspath(dirname(__file__))) # print(abspath(__file__)) # /Users/xxx/PycharmProjects/PythonWeb/server_normal_Flask # /Users/xxx/PycharmProjects/PythonWeb/server_normal_Flask # /Users/xxx/PycharmProjects/PythonWeb/server_normal_Flask/wsgi.py # 建立一个软连接 for newapp.conf # ln -s /root/PythonWeb/server_normal_Flask/newapp.conf /etc/supervisor/conf.d/newapp.conf # 建立一个软连接 for newapp.nginx # ln -s /root/PythonWeb/server_normal_Flask/newapp.nginx /etc/nginx/sites-enabled/newapp