https://github.com/mdp/webpacker-docker
An example application for Rails 5.2 + Webpacker 3.4.3 on Docker/Docker Compose
https://github.com/mdp/webpacker-docker
Last synced: 8 months ago
JSON representation
An example application for Rails 5.2 + Webpacker 3.4.3 on Docker/Docker Compose
- Host: GitHub
- URL: https://github.com/mdp/webpacker-docker
- Owner: mdp
- Created: 2018-10-24T18:31:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-12T20:16:17.000Z (about 8 years ago)
- Last Synced: 2025-03-17T02:23:44.727Z (over 1 year ago)
- Language: Ruby
- Size: 81.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Webpacker + Docker
A minimal example app for showing how Webpacker can be integrated with Docker and Docker Compose.
This demonstrates how the asset pipeline and webpacker can co-exist. I have however included app/javascript/src/application.css in the webpack manifest so you can see the benefits of live code reloading with webpack.
## Setup
Install [Docker](https://docs.docker.com/install/) and [Docker Compose](https://docs.docker.com/compose/install/).
Run `docker-compose up --build`
For bonus points, try changing the colour of the H1 in app/javascript/src/application.css. Look ma, no refresh!
## Now you know
You can run `docker attach webpackerdocker_web_1` in a new terminal tab if you want a native-like byebug/pry experience.