Skip to content

Commit

Permalink
🔨 Remove postinstall script (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukevella authored Aug 26, 2024
1 parent 08d6d00 commit 5596c80
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The following instructions are for running the project locally for development.

2. Install dependencies

```
```bash
yarn
```

Expand All @@ -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
```

Expand All @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion apps/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5596c80

Please sign in to comment.