Skip to content

Need help with Docker + Capybara + RSpec + Hot Reload assets #465

Closed
@patrickemuller

Description

@patrickemuller

I'm been struggling to have Hot Reload working with Docker + Capybara + RSpec.

I can't use Hot Reload when testing views with Capybara, the Webpack serving the assets always says that I cannot access the build packs from one container to another, even when I configure Webpack options to allow requests from outside the container.

The only way I can have my specs working is when I do rake assets:precompile before running the specs. But using this way, I had to create a container just with RSpec options and ENV vars (so I tell rails to precompile instead of serving assets from Webpack).

Do you guys have faced a similar behavior before?
I'll try to attach some screenshots and code in the next days, just to show more information about what I'm facing right now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions