Build your albumy website using flask, gunicorn and nginx.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

820 B

部署该项目不应在root用户下进行,应用有root权限的普通用户进行。
此处用Rivenatte来代表root权限的普通用户。

系统:Centos 8
需开放5000,80端口

切换到Rivenatte:
    su Rivenatte;

更新:
    sudo yum update;
    sudo yum upgrade;

以防万一,确保已有gcc:
    sudo yum install gcc;

拉取项目:
    git clone http://106.75.225.141/guoteng/Albumy.git;
    cd Albumy;

部署:
    python3 -m venv env;(or python2 -m venv env)
    source env/bin/activate; (进入虚拟环境)
    pip install -r requirements.txt;
    可能会提醒更新pip,这个随意;

测试: