Troubleshooting from the rails docker container.
Assets Troubleshooting
Assets are broken! - Currently working to fix this in the image
docker-compose exec website bundle exec rails webpacker:install
docker-compose exec website bundle exec rake assets:precompile
docker-compose run website rake assets:precompile RAILS_ENV=test
Update: Assets are really broken! React is very broken.
Frontend - Webpack
Use npm
to install json packages on your dev machine, but then use yarn
to install them on the containers.
NPM should not be used on the production image. It really just doesn’t work.