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 <[email protected]>
(cherry picked from commit d839abe)
  • Loading branch information
kamoltat committed Jan 30, 2024
1 parent 1b77720 commit 5b27213
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 5b27213

Please sign in to comment.