Comments (3)
Issue Status: 🆕 *Untriaged
*🆕 Untriaged
The team has not yet reviewed the issue. We usually do it within one business day.
Docs: https://github.com/toeverything/AFFiNE/blob/canary/docs/issue-triaging.md
This is an automatic reply by the bot.
from affine.
The APP in dev mode is not suitable for using as a selfhost deployment because it will come with a lot of difference on config and authentication. For instance, in your case, the AFFINE_ADMIN_EMAIL
and AFFINE_ADMIN_PASSWORD
will not take effect and that's why you can't sign in directly through the credentials specified.
To run the build from scratch, you may build the server code by yarn workspace @affine/server build
and run exact the same commands listed in compose.yml
yarn workspace @affine/server build
cd packages/backend/server
# with all environment variables configured correctly
node --import=./scripts/register.js ./dist/data/index.js run
node --import=./scripts/register.js ./dist/index.js
from affine.
开发模式下的 APP 不适合用作自托管部署,因为它在配置和身份验证方面会有很大差异。例如,在您的情况下,和
AFFINE_ADMIN_EMAIL
不会AFFINE_ADMIN_PASSWORD
生效,这就是为什么您无法通过指定的凭据直接登录。要从头开始运行构建,您可以通过构建服务器代码
yarn workspace @affine/server build
并运行列出的完全相同的命令compose.yml
yarn workspace @affine/server build cd packages/backend/server # with all environment variables configured correctly node --import=./scripts/register.js ./dist/data/index.js run node --import=./scripts/register.js ./dist/index.js
我执行到这一步显示, import { register } from 'node:module'; ^^^^^^^^ SyntaxError: The requested module 'node:module' does not provide an export named 'register' at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21) at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)
好像不能使用node 执行es6模式的文档, 这个怎么解决呢
from affine.
Related Issues (20)
- [bug]- OIDC login url is wrong at selfhost HOT 1
- Issue with Node backend startup: TypeError: Symbol.asyncDispose is not defined on Windows 10 with Node 20.x HOT 2
- Hopefully Affine will provide the ability to create copies of files. HOT 1
- Extend the search scope of Affine's “Quick Search” function to the contents of “shape” in endless mode. HOT 1
- Edgeless mode very laggy in latest update HOT 3
- Copying is not working from Affine HOT 2
- 想将其他网页中的文章粘贴在文档中,复制的文章中如果有图片,图片在文档中会无法显示 HOT 1
- Why there can be only 3 users per Workspace in Affine self-hosted version? HOT 2
- markopolo top HOT 2
- Ability to add more details to tasks. (Kanban/table views) HOT 1
- Date entry in table has a bug, changes to another date HOT 1
- Paws and Pals loaded from CDN on self-hosted HOT 1
- email url can not be set to contain port HOT 1
- Can't login locally HOT 2
- Font size HOT 1
- Importing HTML exports from evernote -> created untitled note with title from evernote as body HOT 1
- dismissAiOnboarding modal always shown HOT 2
- Improve connector logic for UX design workflows HOT 2
- gpt-4-vision-preview deprecated make it real HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from affine.