Skip to content

Prepmachine4/form-vue

Repository files navigation

后端项目

https://github.com/Prepmachine4/form-api

页面展示

image image image image image image image image image

前端部署

提示:
默认为公有化部署,若想私有化部署,修改main.js中
app.config.globalProperties.deplolyMethod的值为private即可

  1. 在终端中输入npm run build进行项目打包,打包文件输出到./dist文件夹下
  2. 将dist/文件夹下所有文件夹发布到nginx或者静态服务器即可
  3. 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;
        }
    }

Releases

No releases published

Packages

No packages published

Languages