https://github.com/Prepmachine4/form-api
提示:
默认为公有化部署,若想私有化部署,修改main.js中
app.config.globalProperties.deplolyMethod的值为private即可
- 在终端中输入npm run build进行项目打包,打包文件输出到./dist文件夹下
- 将dist/文件夹下所有文件夹发布到nginx或者静态服务器即可
- nginx参考配置如下
server
{
listen 80;
ssl_certificate /etc/nginx/ssl/xxx.cn.crt;
ssl_certificate_key /etc/nginx/ssl/xxx.cn.key;
include ssl_params;
server_name xxx.cn;
root /home/ubuntu/form-api;
location /
{
uwsgi_pass 127.0.0.1:5000;
include uwsgi_params;
}
}