Skip to content

HIVE is a website where people can store and share their knowledge.

Notifications You must be signed in to change notification settings

applejuicey/HIVE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HIVE

前端部署 - CentOS

项目内修改:

1. router.js内修改

mode: 'history',
base: '/hive/',

2. vue.config.js内修改

module.exports = {
  publicPath: '/hive/',
};

使用nginx部署:

1. 在centos上安装nginx
2. 修改nginx配置文件
使用nginx -t查看配置文件的位置
一般在/etc/nginx/nginx.conf
3. 修改如下

user root
server {
  root /usr/projects/;
  index index.html
  location /hive {
    try_files $uri $uri/ /index.html
  }
}

4. 重启nginx
systemctl restart nginx.service
5. 将build后的文件夹放至/usr/projects/
6. 访问IP/hive

About

HIVE is a website where people can store and share their knowledge.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages