dev config

This commit is contained in:
simple321vip
2022-08-22 08:35:38 +08:00
parent 69e05f61a3
commit 8d9872b896
4 changed files with 42 additions and 31 deletions
+4 -25
View File
@@ -33,37 +33,16 @@
添加了.env.production .env.development 文件
对vite.config.ts做了修改。
# 云服务器的那些坑
// node.js
nodejs 官网直接下载tar.gz 解压到/usr/local/lib/nodejs
// nginx
nginx 这个坑就多了 同样是官网 下载tar.gz 二进制版本 需要编译,但是可能是版本比较新的缘故吧,在make那部出了好多错,最后一查都是云服务器的环境太老了导致的。
// 首先是没有pcre 不用编译直接塞到 /usr/local/src/pcre-8.45
https://sourceforge.net/projects/pcre/files/pcre/8.45/
// 然后又提示 aclocal-1.16: command not found,结果一查就是automake和autoconf的版本问题了
// automake
https://ftp.gnu.org/gnu/automake/ 下载
./configure
make
make install
/usr/bin/autoconf -V
http://ftp.gnu.org/gnu/autoconf/ 下载
./configure --prefix=/usr/
make
make install
到这才把nginx装完
# 云服务器
nginx as a veb server, i use the official image to build this app image.
## 发布
- npm run build 生成dist 文件夹
把这个文件夹放到nginx的html文件夹下改名ghome
nginx那个 location /ghome 也要有。
## 百度网盘开放平台
https://pan.baidu.com/union/home?menuKey=union-home