Skip to content

Commit

Permalink
Merge branch 'main' into chore--add-redis-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
devsargam authored Jun 26, 2024
2 parents 318270e + 3be078a commit 8cb2773
Show file tree
Hide file tree
Showing 114 changed files with 932 additions and 757 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
.git
.gitignore
.env.example
.env
5 changes: 4 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
"trailingComma": "all",
"plugins": [
"prettier-plugin-tailwindcss"
]
}
14 changes: 14 additions & 0 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:20-alpine
ARG DATABASE_URL

WORKDIR /usr/src/app

COPY . .

RUN npm install
RUN DATABASE_URL=$DATABASE_URL npx prisma generate
RUN DATABASE_URL=$DATABASE_URL npm run build

EXPOSE 3000

CMD ["npm", "run", "start"]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

1. Clone the repository:
```bash
git clone https://github.com/your-username/cms.git
git clone https://github.com/code100x/cms.git
```
2. Navigate to the project directory:
```bash
Expand All @@ -20,7 +20,7 @@

1. clone the repository:
```bash
git clone https://github.com/your-username/cms.git
git clone https://github.com/code100x/cms.git
```
2. Navigate to the project directory:
```bash
Expand Down Expand Up @@ -92,4 +92,4 @@ Read our [contribution guidelines](./CONTRIBUTING.md) for more details.
</a>

## Issues on mac Silicon
brew install pkg-config cairo pango libpng jpeg giflib librsvg
brew install pkg-config cairo pango libpng jpeg giflib librsvg
Loading

0 comments on commit 8cb2773

Please sign in to comment.