File tree 4 files changed +19
-1
lines changed
4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ group :development, :test do
49
49
50
50
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
51
51
gem 'spring'
52
+
53
+ # Manage application processes
54
+ gem 'foreman'
52
55
end
53
56
54
57
gem 'autoprefixer-rails'
Original file line number Diff line number Diff line change 53
53
columnize (0.8.9 )
54
54
debug_inspector (0.0.2 )
55
55
debugger-linecache (1.2.0 )
56
+ dotenv (1.0.2 )
56
57
erubis (2.7.0 )
57
58
execjs (2.2.1 )
59
+ foreman (0.76.0 )
60
+ dotenv (~> 1.0.2 )
61
+ thor (~> 0.19.1 )
58
62
globalid (0.2.3 )
59
63
activesupport (>= 4.1.0 )
60
64
hike (1.2.3 )
@@ -161,6 +165,7 @@ DEPENDENCIES
161
165
autoprefixer-rails
162
166
byebug
163
167
coffee-rails (~> 4.0.0 )
168
+ foreman
164
169
jbuilder (~> 2.0 )
165
170
jquery-rails
166
171
pg
Original file line number Diff line number Diff line change 1
1
web: rails s -p 4000
2
- webpack: cd webpack && webpack -w --config webpack.rails.config.js
2
+ webpack: cd webpack && $(npm bin)/ webpack -w --config webpack.rails.config.js
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ Point browser to [http://0.0.0.0:3000]().
38
38
Make sure to invoke your local copy of the webpack executable as opposed
39
39
to any globally installed webpack.
40
40
See https://github.com/webpack/extract-text-webpack-plugin/blob/master/example/webpack.config.js
41
+ In doubt you can run the following command:
42
+ ```
43
+ $(npm bin)/webpack --config webpack.hot.config.js
44
+ ```
41
45
42
46
Save a change to a JSX file and see it update immediately in the browser! Note,
43
47
any browser state still exists, such as what you've typed in the comments box.
@@ -93,6 +97,12 @@ by the Rails asset pipeline.
93
97
{ test: /\.scss$/, loader: "style!css!sass?outputStyle=expanded&imagePath=/assets/images"}
94
98
```
95
99
100
+ # Process management
101
+ Run the following command in your development environment to invoke both Webpack and Rails.
102
+ ```
103
+ bundle exec foreman start -f Procfile.dev
104
+ ```
105
+
96
106
# Source Maps
97
107
They work for both Rails and the Webpack Server!
98
108
You can’t perform that action at this time.
0 commit comments