Skip to content
/ hello Public

一个收藏夹:用于收藏书签、笔记、音乐、图片……

Notifications You must be signed in to change notification settings

zxecsm/hello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker

docker run -d --restart=always -p 55555:55555 -v /opt/hello/data:/opt/hello/data -v /:/home -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --name hello zxecsm/hello:latest
services:
  hello:
    image: 'zxecsm/hello:latest'
    container_name: hello
    restart: always
    volumes:
      - /:/home # 文件管理根目录
      - /opt/hello/data:/opt/hello/data # 网站数据存放目录
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - '55555:55555'

手动

git clone https://github.com/zxecsm/hello.git /opt/hello/hello
vim /opt/hello/hello/server/data/config.js
const filepath = '/opt/hello/data'; // 网站数据存放目录
const rootP = '/home'; // 文件管理根目录
const configObj = {
  port: 55555,
  filepath,
  rootP,
  userFileP: `${filepath}/userFile`,
};
module.exports = configObj;
PROJECT_PATH="/opt/hello/hello"
SERVER_PATH="$PROJECT_PATH/server"
WEB_PATH="$PROJECT_PATH/web"

# 安装依赖
pnpm install --prefix "$SERVER_PATH"
pnpm install --prefix "$WEB_PATH"

# 打包
pnpm --prefix "$WEB_PATH" run build

# 启动服务
node "$SERVER_PATH/app.js"
  • username:admin
  • password:

hello

About

一个收藏夹:用于收藏书签、笔记、音乐、图片……

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published