Skip to content

Instantly share code, notes, and snippets.

View shesl-meow's full-sized avatar
💨
Farting

BruceWayne shesl-meow

💨
Farting
View GitHub Profile
@shesl-meow
shesl-meow / ConfigServer.sh
Last active August 31, 2019 19:10
ConfigDjangoUwsgi
#!/usr/bin/env bash
# required package:
# nginx, uwsgi, python
SELF_PATH=`cd $(dirname $0); pwd -P;`
read -e -p "Enter IP address of your config server?/ 请输入您服务器的 IP 地址:" \
-i "9.105.214.245" SERVER_IP
read -e -p "Enter the deploy port of your config? / 请输出您需要部署的服务器 IP 地址:"\
-i "8090" SERVER_PORT
@shesl-meow
shesl-meow / InitPython36.sh
Created March 2, 2019 15:15
python 3.6 uwsgi 环境配置的初始化脚本
#!/usr/bin/env bash
cd `dirname $0`
# TODO: install all system requirement
sudo apt-get install nginx python3.6 python3.6-dev \
uwsgi uwsgi-src uuid-dev libcap-dev libpcre3-dev
# TODO: build python3.6 plugin for uwsgi
export PYTHON=python3.6