You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When LOG_LEVEL is not set, the admin user will not be created when the npm run bootstrap script is run. Therefore, it says it's successful in bootstrapping, but when you go to login with your username and password, it doesn't work.
To reproduce
Steps to reproduce the behavior:
This should be for a new project without a user.
Comment out LOG_LEVEL
Go to apps/cms
Run npm run bootstrap
Check CMS database table directus_users; there's no user. It also will specify in the logs it created the user if it worked.
Expected behavior
When LOG_LEVEL is warn, the admin user is created as expected and you can login.
Additional context
When you console log console.log({ userCount }) in the bootstrap file, it returns:
Overview
When
LOG_LEVEL
is not set, the admin user will not be created when thenpm run bootstrap
script is run. Therefore, it says it's successful in bootstrapping, but when you go to login with your username and password, it doesn't work.To reproduce
Steps to reproduce the behavior:
This should be for a new project without a user.
LOG_LEVEL
apps/cms
npm run bootstrap
directus_users
; there's no user. It also will specify in the logs it created the user if it worked.Expected behavior
When
LOG_LEVEL
iswarn
, the admin user is created as expected and you can login.Additional context
When you console log
console.log({ userCount })
in the bootstrap file, it returns:The text was updated successfully, but these errors were encountered: