Skip to content

Commit

Permalink
Add hot reload option for development purposes
Browse files Browse the repository at this point in the history
Allow hot reload in Development mode for
pulpito-ng. This saves a lot more time
when developing with other tech stacks.

Also, fixed some dependency issues in package-lock.json

Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
  • Loading branch information
kamoltat committed Jan 30, 2024
1 parent 8bd6699 commit d839abe
Show file tree
Hide file tree
Showing 5 changed files with 196 additions and 82 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ RUN \
mkdir -p /app/node_modules/.vite && \
npm install
COPY . .
RUN chown -R node:node /app && \
npm run build
USER node
CMD ["npm", "run", "serve", "--", "--host"]
CMD sh /app/start_container.sh
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,14 @@ In [teuthology's docker-compose](https://github.com/ceph/teuthology/blob/main/do
ports:
- 8081:8081
```
[recommended] For developement purposes:
Add the following to `pulpito-ng` container:

```
pulpito-ng:
environment:
DEPLOYMENT: development
volumes:
- ../../../pulpito-ng:/app/:rw
- /app/node_modules
```
Loading

0 comments on commit d839abe

Please sign in to comment.