This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |