Skip to content

Commit

Permalink
update seed command on doc (ToolJet#3910)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaysasidrn authored Sep 1, 2022
1 parent 032c687 commit 2be5abf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/docs/setup/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ If you rather want to try out ToolJet locally with docker, you can follow the st
8. Seed the database:

```bash
docker-compose run server npm run db:seed
docker-compose exec server npm run db:seed:prod
```

This seeds the database with a default user with the following credentials:
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/setup/google-cloud-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Signing up requires [SMTP configuration](https://docs.tooljet.com/docs/setup/env
```bash
gcloud run deploy <replace-service-name> \
--image gcr.io/<replace-your-project-id>/tooljet/tooljet-server-ce:latest \
--args "npm,run,db:seed"
--args "npm,run,db:seed:prod"
```

The deployment will fail as it runs a seed script. Check logs to see that default user was created. Now run the following command to have the app deployed.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/setup/kubernetes-aks.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ You will be able to access your ToolJet installation once the pods and services

If you want to seed the database with a sample user, please SSH into a pod and run:

`npm run db:seed --prefix server`
`npm run db:seed:prod --prefix server`

This seeds the database with a default user with the following credentials:

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/setup/kubernetes-gke.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ You will be able to access your ToolJet installation once the pods, service and

If you want to seed the database with a sample user, please SSH into a pod and run:

`npm run db:seed --prefix server`
`npm run db:seed:prod --prefix server`

This seeds the database with a default user with the following credentials:

Expand Down
2 changes: 1 addition & 1 deletion server/scripts/digitalocean-postbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export DATABASE_URL=${DATABASE_URL%"?sslmode=require"}
(
export NODE_EXTRA_CA_CERTS="$(pwd)/ca-certificate.pem"; \
npm run db:migrate:prod && \
npm run db:seed && \
npm run db:seed:prod && \
npm run start:prod
)

0 comments on commit 2be5abf

Please sign in to comment.