Answer the question
In order to leave comments, you need to log in
How to run Unicorn and Webpack Dev Server together?
Good day!
There is a project in Ruby. Works in docker on Unicorn. I would like to attach hot reload to the frontend of the project, for which you need to run the webpack dev server. I do it with Foreman.
# Procfile
frontend: yarn server # запускает dev server на 3000 порту
backend: bundle exec unicorn -c /app/config/unicorn/development.rb -E development
version: '3.4'
services:
app:
build:
context: .
dockerfile: Dockerfile.development
ports:
- 3000:8080
links:
- postgres
- redis
- elastic
command: foreman start -e .env.development
# все остальное, тома, окружение, т.п.
Answer the question
In order to leave comments, you need to log in
Once you have such a sandwich. could have a location in nginx proxying to the dev server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question