There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
chore: create default user for devcontainer (#5917)
EYHN0dabb08217b4
diff --git a/.devcontainer/build.sh b/.devcontainer/build.shindex aae6965bf6..5095dd3ce2 100644--- a/.devcontainer/build.sh+++ b/.devcontainer/build.sh@@ -12,4 +12,7 @@ yarn installyarn workspace @affine/storage build# Create database-yarn workspace @affine/server prisma db push\ No newline at end of file+yarn workspace @affine/server prisma db push++# Create user username: affine, password: affine+echo "INSERT INTO \"users\"(\"id\",\"name\",\"email\",\"email_verified\",\"created_at\",\"password\") VALUES('99f3ad04-7c9b-441e-a6db-79f73aa64db9','affine','[email protected]','2024-02-26 15:54:16.974','2024-02-26 15:54:16.974+00','\$argon2id\$v=19\$m=19456,t=2,p=1\$esDS3QCHRH0Kmeh87YPm5Q\$9S+jf+xzw2Hicj6nkWltvaaaXX3dQIxAFwCfFa9o38A');" | yarn workspace @affine/server prisma db execute --stdin\ No newline at end of filediff --git a/.devcontainer/setup-user.sh b/.devcontainer/setup-user.shindex 1171f79d46..21fd1c7cb3 100755--- a/.devcontainer/setup-user.sh+++ b/.devcontainer/setup-user.sh@@ -1,7 +1,9 @@+set -e+if [ -v GRAPHITE_TOKEN ];thengt auth --token $GRAPHITE_TOKENfi-git fetch+git fetch origin canary:canary --depth=1git branch canary -t origin/canarygt init --trunk canary