# game_admin **Repository Path**: sylarSong/game_admin ## Basic Information - **Project Name**: game_admin - **Description**: 五星后台 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-09-16 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 系统环境 >= Ubuntu 12.04 Server ### 安装基础依赖 ``` apt-get install ``` ### 安装 Nginx ``` apt-get install nginx ``` ### 安装 uwsgi ``` apt-get install uwsgi uwsgi-plugin-python ``` ### 安装 flask ``` pip install flask ``` ### 配置 uwsgi ``` echo "[uwsgi] plugins=python vhost=true socket=127.0.0.1:9002" > /etc/uwsgi/apps-enabled/admin7.ini ``` ### 配置 Nginx ``` echo "server { listen 80; server_name example.com; root /path/to/project; # 项目根目录 location / { include uwsgi_params; uwsgi_pass 127.0.0.1:9002; uwsgi_param UWSGI_CHDIR $document_root; uwsgi_param UWSGI_PYHOME /path/to/env; # 为避免污染本地环境, 建议使用virtualenv uwsgi_param UWSGI_MODULE manager; # 项目入口模块 uwsgi_param UWSGI_CALLABLE application; # wsgi 实例 } }" > /etc/nginx/sites-enabled/example.conf ```