-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstart.sh
executable file
·43 lines (37 loc) · 1.22 KB
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /bin/sh
###
# .::::.
# .::::::::.
# :::::::::::
# ..:::::::::::'
# '::::::::::::'
# .::::::::::
# '::::::::::::::..
# ..::::::::::::.
# ``::::::::::::::::
# ::::``:::::::::' .:::.
# ::::' ':::::' .::::::::.
# .::::' :::: .:::::::'::::.
# .:::' ::::: .:::::::::' ':::::.
# .::' :::::.:::::::::' ':::::.
# .::' ::::::::::::::' ``::::.
# ...::: ::::::::::::' ``::.
# ````':. ':::::::::' ::::..
# '.:::::' ':'````..
#
# @Description: 启动本地服务器
# @Author: ashen23
# @LastEditTime: 2020-06-24 10:41:15
# @Copyright: © 2020 Ashen23. All rights reserved.
###
cd faker
if [ -d "./venv/" ];then
source venv/bin/activate
else
echo "正在安装环境所需依赖"
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
fi
nohup python3 -u main.py> ../out.log 2>&1 &
echo "🎉🎉🎉启动成功..."