Skip to content

Commit

Permalink
Now we need to set dev_server config to Rails.env.test
Browse files Browse the repository at this point in the history
```
Error:
PagesControllerTest#test_it_mounts_components_from_the_dev_server:
RuntimeError: Failed to start dev server
    /home/travis/build/reactjs/react-rails/test/support/webpacker_helpers.rb:65:in `with_dev_server'
    /home/travis/build/reactjs/react-rails/test/react/rails/pages_controller_test.rb:32:in `block (2 levels) in <class:PagesControllerTest>'
```

Related to rails/webpacker#1179
  • Loading branch information
goldapple911 authored and justin808 committed Aug 6, 2018
1 parent 2990542 commit 20923bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/dummy_webpacker3/config/webpacker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ test:
<<: *default
compile: true

dev_server:
host: localhost
port: 8080
hmr: false
https: false

production:
<<: *default

Expand Down

0 comments on commit 20923bb

Please sign in to comment.