mirror of
https://github.com/crystelf/crystelf-core.git
synced 2025-10-14 21:39:19 +00:00
Compare commits
No commits in common. "8c9011ca327701cf672217f9e6c4fa996b9770bd" and "c1c3f9a5fdb19afce679f79d5798f892c6361d44" have entirely different histories.
8c9011ca32
...
c1c3f9a5fd
11
README.md
11
README.md
@ -1,9 +1,16 @@
|
|||||||
## 构建:
|
## 构建:
|
||||||
- npm i pnpm -g
|
|
||||||
- pnpm i
|
- pnpm i
|
||||||
- pnpm build
|
- pnpm build
|
||||||
- bash start.sh
|
- bash start.sh
|
||||||
|
|
||||||
## 使用:
|
## 使用:
|
||||||
|
- public/files/image/图片 支持多级目录
|
||||||
|
- public/files/media/视频 支持多级目录
|
||||||
|
- logs/日志
|
||||||
|
- src/modules/路由 支持post&get
|
||||||
- .env 环境变量
|
- .env 环境变量
|
||||||
- 其他使用说明请参考[Crystelf-docs](https://docs.crystelf.top)
|
|
||||||
|
## 贡献
|
||||||
|
- fork到自己的储存库
|
||||||
|
- 在自己的储存库内推送更新
|
||||||
|
- 提交pr,等待合并
|
||||||
|
@ -20,8 +20,8 @@ export class MemeService {
|
|||||||
|
|
||||||
private startAutoUpdate() {
|
private startAutoUpdate() {
|
||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
//const memePath = this.pathService.get('meme');
|
const memePath = this.pathService.get('meme');
|
||||||
const memePath = path.join(this.pathService.get('meme'), '..');
|
//const memePath = path.join(this.pathService.get('meme'),'..'); TODO 需确认检查src更新是否影响正常运行
|
||||||
this.logger.log('定时检查表情仓库更新..');
|
this.logger.log('定时检查表情仓库更新..');
|
||||||
const updated = await this.autoUpdateService.checkRepoForUpdates(
|
const updated = await this.autoUpdateService.checkRepoForUpdates(
|
||||||
memePath,
|
memePath,
|
||||||
|
@ -31,8 +31,8 @@ export class WordsService {
|
|||||||
|
|
||||||
private startAutoUpdate() {
|
private startAutoUpdate() {
|
||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
const wordsPath = path.join(this.paths.get('words'), '..');
|
//const wordsPath = path.join(this.paths.get('words'),'..'); TODO 需确认检查src更新是否影响正常运行
|
||||||
//const wordsPath = this.paths.get('words');
|
const wordsPath = this.paths.get('words');
|
||||||
this.logger.log('定时检查文案仓库更新..');
|
this.logger.log('定时检查文案仓库更新..');
|
||||||
const updated = await this.autoUpdateService.checkRepoForUpdates(
|
const updated = await this.autoUpdateService.checkRepoForUpdates(
|
||||||
wordsPath,
|
wordsPath,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user