1 Star 0 Fork 0

mm1994uestc/openag-device-software

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
run.sh 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
Jake Rye 提交于 2019-01-30 14:52 . image tab on device ui is functional
#!/bin/bash
# Get project root, assumes this script is in project root
PROJECT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Source virtual environment
source $PROJECT_ROOT/venv/bin/activate
# Only if we are on linux, we run a light weight web server to vend images
if [[ "$OSTYPE" == "linux"* ]]; then
sudo pkill busybox
sudo busybox httpd -p 8088 -h $PROJECT_ROOT/data/images/
fi
# Initialize command line arg default values
NO_DEVICE="false"
SIMULATE="false"
# Get command line arguments
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
--no-device) shift
NO_DEVICE="true"
;;
--simulate) shift
SIMULATE="true"
;;
*)
POSITIONAL+=("$1")
shift
;;
esac
done
set -- "${POSITIONAL[@]}"
# Export command line arguments
export NO_DEVICE
export SIMULATE
# Run app
python3.6 manage.py runserver 0.0.0.0:8000
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mm1994uestc/openag-device-software.git
[email protected]:mm1994uestc/openag-device-software.git
mm1994uestc
openag-device-software
openag-device-software
master

搜索帮助