Skip to content

Commit 7b99d53

Browse files
committed
fix(webpack): point webpack scripts to Gemfile
1 parent f70b283 commit 7b99d53

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.rspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
--require spec_helper
22
--color
3-
--format=doc

docs/CONTRIBUTING.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ This command loads the dummy app with test data.
2222
To navigate the application you can run, inside the `/spec/dummy` directory:
2323

2424
```
25-
rails s
25+
bin/rails s
26+
```
27+
28+
If you are using webpacker, it can be useful to run:
29+
30+
```
31+
bin/webpack-dev-server
2632
```
2733

2834
> It is a good idea to add to the dummy app any new functionality. See for example the file: `/spec/dummy/app/admin/invoices.rb`

spec/dummy/bin/webpack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
44
ENV["NODE_ENV"] ||= "development"
55

66
require "pathname"
7-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
7+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../../Gemfile",
88
Pathname.new(__FILE__).realpath)
99

1010
require "bundler/setup"

spec/dummy/bin/webpack-dev-server

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
44
ENV["NODE_ENV"] ||= "development"
55

66
require "pathname"
7-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
7+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../../Gemfile",
88
Pathname.new(__FILE__).realpath)
99

1010
require "bundler/setup"

0 commit comments

Comments
 (0)