博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
项目部署服务器流程
阅读量:4029 次
发布时间:2019-05-24

本文共 348 字,大约阅读时间需要 1 分钟。

1、项目前后台打包

项目前后端分离项目,所以对应打包前后端。
前台:使用开发工具:vs code
打包代码: yarn build & npm run build
后台:使用工具:eclipse
打包方式:maven install & export
关于eclipse的export打包方法请移步

2、使用Bitvise连接服务器

1、打开客户端
2、配置IP、用户名、密码
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201225151756106.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L1NjaGFmZmVyX1c=,size_16,color_FFFFFF,t_70

3、找到需要保存的位置

4、前后端打包的文件放进去

3、更改端口设置

  1. vue的vue.config.js
    增加公共路径:publicPath: '/cps/',在这里插入图片描述
  2. springboot的配置文件properties
    更改部署服务器的端口
    在这里插入图片描述
  3. 配置nigix的conf文件
    在这里插入图片描述
    配置/cps/api这两个路径
    在这里插入图片描述

最后访问网址即可。

转载地址:http://gqlbi.baihongyu.com/

你可能感兴趣的文章
Django objects.all()、objects.get()与objects.filter()之间的区别介绍
查看>>
python:如何将excel文件转化成CSV格式
查看>>
Django 的Error: [Errno 10013]错误
查看>>
机器学习实战之决策树(一)
查看>>
[LeetCode By Python] 2 Add Two Number
查看>>
python 中的 if __name__=='__main__' 作用
查看>>
机器学习实战之决策树二
查看>>
[LeetCode By Python]7 Reverse Integer
查看>>
[LeetCode By Python]9. Palindrome Number
查看>>
[leetCode By Python] 14. Longest Common Prefix
查看>>
[LeetCode By Python]107. Binary Tree Level Order Traversal II
查看>>
[LeetCode By Python]108. Convert Sorted Array to Binary Search Tree
查看>>
[leetCode By Python]111. Minimum Depth of Binary Tree
查看>>
[LeetCode By Python]118. Pascal's Triangle
查看>>
[LeetCode By Python]121. Best Time to Buy and Sell Stock
查看>>
[LeetCode By Python]122. Best Time to Buy and Sell Stock II
查看>>
[LeetCode By Python]125. Valid Palindrome
查看>>
[LeetCode By Python]136. Single Number
查看>>
[LeetCode By Python]167. Two Sum II - Input array is sorted
查看>>
[LeetCode BY Python]169. Majority Element
查看>>