From 5596c80d6215b2e9902285b2c0998527516e6646 Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Mon, 26 Aug 2024 10:45:24 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20=20Remove=20postinstall=20script?= =?UTF-8?q?=20(#1277)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 ++++++++++++------ apps/web/Dockerfile | 2 +- package.json | 1 - 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6ad0d8e48fd..d95940cb00b 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ The following instructions are for running the project locally for development. 2. Install dependencies - ``` + ```bash yarn ``` @@ -51,19 +51,25 @@ The following instructions are for running the project locally for development. **Note:** `.env.development` is preconfigured with default values for development. You can leave these as is for local development. -4. Setup database +4. Generate Prisma client + + ```bash + yarn db:generate + ``` + +5. Setup database You will need to have [Docker](https://docs.docker.com/get-docker/) installed and running to run the database using the provided docker-compose file. To start the database, run: - ``` + ```bash yarn docker:up ``` Next run the following command to setup the database: - ``` + ```bash yarn db:reset ``` @@ -73,9 +79,9 @@ The following instructions are for running the project locally for development. - run migrations to create a new database schema - seed the database with test users and random data -5. Start the Next.js server +6. Start the Next.js server - ``` + ```bash yarn dev ``` diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index 576beec856c..7c0bfaa1e8c 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -42,7 +42,7 @@ COPY --from=builder --chown=nextjs:nodejs /app/packages/database/prisma ./prisma COPY --from=installer /app/apps/web/next.config.js . COPY --from=installer /app/apps/web/package.json . -ENV PORT 3000 +ENV PORT=3000 EXPOSE 3000 # Automatically leverage output traces to reduce image size diff --git a/package.json b/package.json index 2192df4d415..d278fff2626 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,6 @@ "private": true, "version": "3.9.0", "scripts": { - "postinstall": "yarn db:generate", "dev": "turbo dev --filter=@rallly/web", "dev:emails": "turbo dev --filter=@rallly/emails", "dev:landing": "dotenv -c development turbo dev --filter=@rallly/landing",