Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部署总结如下 #1

Open
zolagz opened this issue Jun 17, 2023 · 1 comment
Open

部署总结如下 #1

zolagz opened this issue Jun 17, 2023 · 1 comment

Comments

@zolagz
Copy link

zolagz commented Jun 17, 2023

新建文件夹site_app, 然后把pic_online.zip解压后的文件放在该目录下;
在site_app目录下,创建pic文件夹,把pic_online_pic.zip解压到该目录下;
并在site_app目录下

site_app
├── cache # 缓存文件夹, 无需关心
├── images # 图片文件夹 --> 页面上需要预览的图片
├── pic # 前端文件夹
└── video # 视频文件夹  -> 页面上需要预览的视频

修改env.sh中的内容:

export NAS_DOMAIN="127.0.0.1"
export PIC_BASE_DIR=/Users/Ubuntu/Desktop/site_app
export MOLECULER_PORT=89
export MOLECULER_DDNS_ENABLE=false
export PIC_DIR=$PIC_BASE_DIR/images 
export VIDEO_DIR=$PIC_BASE_DIR/video
export PIC_POSTER_DIR=$PIC_BASE_DIR/cache
export PIC_PREFIX=http://$NAS_DOMAIN:$MOLECULER_PORT
export MOLECULER_DDNS_DOMAIN=$NAS_DOMAIN
export MOLECULER_DDNS_TOKEN=$NAS_DOMAIN
# 登陆过期时间, 单位小时
export JWT_TOKEN_EXPIRE=336

npm run start

通过PIC_BASE_DIR指定site_app的路径;
修改NAS_DOMAIN="127.0.0.1"
修改MOLECULER_DDNS_ENABLE=false

PIC_DIR指定的目录就是页面加载显示的图片资源,

sudo bash env.sh 启动

@zolagz zolagz changed the title 请问如何挂载本地图片资源目录? 撒花✿✿ヽ(°▽°)ノ✿ Jun 17, 2023
@zolagz zolagz changed the title 撒花✿✿ヽ(°▽°)ノ✿ 部署总结如下 Jun 17, 2023
@IITII
Copy link
Owner

IITII commented Jun 18, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants