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

feat: bark notifier #2750

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

zhuozhiyongde
Copy link

@zhuozhiyongde zhuozhiyongde commented Oct 6, 2024

NOTICE:此 PR 未经测试,我是直接仿照 pushplus 写的,因为我按照 contribution 文档跑不起来很奇怪...

Cursor 2024-10-07 03 28 59

如图,配置 example/.env 后确实可以启动 pnpm server:dev,但是无法登录,也无法获取评论,没法尝试 debug,或许需要有大佬指点一二...


NOTICE: This PR has not been tested. I wrote it directly after pushplus, because it was strange that it couldn't run according to the contribution document...

Cursor 2024-10-07 03 28 59

As shown in the figure, after configuring example/.env, you can indeed start pnpm server:dev, but you cannot log in, get comments, and try to debug. Maybe you need some advice from an expert...

@lizheming lizheming self-requested a review October 8, 2024 02:24
@mapxn
Copy link
Contributor

mapxn commented Jan 15, 2025

@zhuozhiyongde 遇到了同样问题, pnpm server:dev 启动后遇到 Incorrect parameter format错误。

你可以使用 node ./packages/server/vanilla.js 启动server端,环境变量可以在./packages/server/src/config/config.js文件中临时配置,再启动就不报错了。

...
  COMMENT_AUDIT,
} = process.env;

//  临时配置环境变量
process.env.LEAN_ID=1234;
process.env.LEAN_KEY=5678;
process.env.LEAN_MASTER_KEY=abcd;
process.env.BARK_KEY=xxx;

let storage = 'leancloud';
let jwtKey = JWT_TOKEN || LEAN_KEY;

...

@zhuozhiyongde encountered the same problem. After starting pnpm server:dev, he encountered an Incorrect parameter format error.

You can use node ./packages/server/vanilla.js to start the server. The environment variables can be temporarily configured in the ./packages/server/src/config/config.js file, and no error will be reported when you start it again.

...
  COMMENT_AUDIT,
} = process.env;

// Temporarily configure environment variables
process.env.LEAN_ID=1234;
process.env.LEAN_KEY=5678;
process.env.LEAN_MASTER_KEY=abcd;
process.env.BARK_KEY=xxx;

let storage = 'leancloud';
let jwtKey = JWT_TOKEN || LEAN_KEY;

...

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

Successfully merging this pull request may close these issues.

2 participants