Coder Social home page Coder Social logo

gzunick / pysite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from revoll/pysite

0.0 1.0 0.0 24.09 MB

使用Python编写的个人网站系统,能够实现用户认证与管理、博客、照片分享等功能,基于Flasky项目开发。

Python 7.31% CSS 15.01% HTML 33.12% JavaScript 43.45% PHP 0.98% Shell 0.11% Mako 0.03%

pysite's Introduction

PySite

使用Python编写的个人网站系统,能够实现用户认证与管理、博客、照片分享等功能,基于Flasky项目开发。

项目部署指南 (Ubuntu16.04 + Nginx + uWSGI)

1. 新系统下, 安装必要的软件包

    # apt-get upgrade & apt-get update
    # apt-get install build-essential python-dev python-pip virtualenv
    # apt-get install nginx uwsgi=2.0.15

2. 将工程代码拷贝到制定目录

    # cp ./PySite /var/www/pysite

3. 配置Nginx

4. 配置uWSGI

5. 用户组等配置

    # chown -R www-data:www-data /var/www/pysite
    # mkdir /var/log/uwsgi
    # chown www-data:www-data /var/log/uwsgi/pysite_uwsgi.log
    # chown www-data:www-data /tmp/pysite_uwsgi.sock

6. 重启Nginx服务&测试

    # /etc/init.d/nginx restart

7. 利用Let's Encrypt生产SSL证书 & 更新SSL证书

    #
    #

pysite's People

Contributors

0x207 avatar revoll avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.