Ai
2 Star 1 Fork 1

weizhanjun/devops-flask-vue

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
entrypoint.sh 725 Bytes
Copy Edit Raw Blame History
李飞 authored 2017-09-18 22:12 +08:00 . fix bug
#!/bin/bash
set -e
cd /app && python manage.py create_user
# Get the maximum upload file size for Nginx, default to 0: unlimited
USE_NGINX_MAX_UPLOAD=${NGINX_MAX_UPLOAD:-0}
# Generate Nginx config for maximum upload file size
echo "client_max_body_size $USE_NGINX_MAX_UPLOAD;" > /etc/nginx/conf.d/upload.conf
# Generate Nginx config first part using the environment variables
echo 'server {
location / {
include uwsgi_params;
uwsgi_pass unix:///tmp/uwsgi.sock;
}
location ~/static/ {
root /app/vue-init/dist;
index index.html index.htm;
}
'> /etc/nginx/conf.d/nginx.conf
# Finish the Nginx config file
echo "}" >> /etc/nginx/conf.d/nginx.conf
exec "$@"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/weizj2000/devops-flask-vue.git
git@gitee.com:weizj2000/devops-flask-vue.git
weizj2000
devops-flask-vue
devops-flask-vue
master

Search