diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 952e8feb..115a8a7e 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -91,7 +91,7 @@ jobs: - name: Seed database run: | - npm run db:push + npm run db:migrate npm run db:seed - name: Run Playwright tests diff --git a/README.md b/README.md index aa018f98..89a0ff03 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ For a more detailed how to guide on setting them up [go to the Environment Varia 6. Setup the tables in the database with Drizzle by running: ```bash -npm run db:push +npm run db:migrate ``` The full command can be seen in our [package.json](/package.json#16) file diff --git a/setup.sh b/setup.sh index bbd300f6..f7e7999d 100755 --- a/setup.sh +++ b/setup.sh @@ -20,10 +20,10 @@ read -p "Copy and past your auth callback url here: " URL echo "- Nice, now open two terminals and run the following commands: " echo "- Terminal 1) - docker-compose up " -echo "- Terminal 2) - npm db:push, npm db:seed, npm run dev " +echo "- Terminal 2) - npm db:migrate, npm db:seed, npm run dev " # Create .env file echo "DATABASE_URL=postgresql://postgres:secret@127.0.0.1:5432/postgres" > .env echo "GITHUB_ID=$GITHUB_ID" >> .env echo "GITHUB_SECRET=$GITHUB_SECRET" >> .env -echo "NEXTAUTH_URL=$URL" >> .env \ No newline at end of file +echo "NEXTAUTH_URL=$URL" >> .env