mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add comment
This commit is contained in:
parent
98497f26c0
commit
0b515d4605
2 changed files with 3 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ services:
|
|||
context: .
|
||||
dockerfile: ./packages/db/Dockerfile
|
||||
container_name: "omnivore-migrate"
|
||||
command: '/bin/sh ./packages/db/setup.sh'
|
||||
command: '/bin/sh ./packages/db/setup.sh' # Also create a demo user with email: demo@omnivore.app, password: demo
|
||||
environment:
|
||||
- PGPASSWORD=postgres
|
||||
- PG_HOST=postgres
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ yarn workspace @omnivore/db migrate
|
|||
psql --host $PG_HOST -U $PG_USER -d $PG_DB -c "GRANT omnivore_user TO app_user;"
|
||||
echo "granted omnivore_user to app_user"
|
||||
|
||||
# create demo user with username: demo, password: demo
|
||||
# create demo user with email: demo@omnivore.app, password: demo
|
||||
USER_ID=$(uuidgen)
|
||||
PASSWORD='$2a$10$nxdWohvkWWpmQ28aTq0BK./pRgt6/WDrWyArvod8uWqxpFu/cfVoy'
|
||||
psql --host $PG_HOST -U $PG_USER -d $PG_DB -c "INSERT INTO omnivore.user (id, source, email, source_user_id, name, password) VALUES ('$USER_ID', 'EMAIL', 'demo@omnivore.app', 'demo@omnivore.app', 'Demo User', '$PASSWORD'); INSERT INTO omnivore.user_profile (user_id, username) VALUES ('$USER_ID', 'demo');"
|
||||
echo "created demo user with username: demo, password: demo"
|
||||
echo "created demo user with email: demo@omnivore.app, password: demo"
|
||||
|
|
|
|||
Loading…
Reference in a new issue