Skip to content

Commit

Permalink
Enabel Vite hot reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
zakariaf committed Nov 13, 2022
1 parent 6e4471e commit b9b2fce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ ARG NODE_ENV
ENV RAILS_ENV="${RAILS_ENV}" \
NODE_ENV="${NODE_ENV}"

RUN echo ${RAILS_ENV}
RUN if [ "${RAILS_ENV}" != "development" ]; then \
bundle config set without "development test"; fi
RUN bundle install --jobs "$(nproc)" --retry "$(nproc)"
Expand Down
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ services:
depends_on:
- "postgres"
- "redis"
environment:
VITE_RUBY_HOST: vite
deploy:
resources:
limits:
Expand Down Expand Up @@ -102,7 +104,9 @@ services:
- "3036:3036"
- "3037:3037"
volumes:
- ".:/app"
- .:/app
environment:
VITE_RUBY_HOST: 0.0.0.0

volumes:
postgres: {}
Expand Down

0 comments on commit b9b2fce

Please sign in to comment.