B
B
Bogdan2017-06-03 14:32:39
Ruby on Rails
Bogdan, 2017-06-03 14:32:39

Rail + Webpacker + Foreman?

Hello. I have Windows 10 x64. Created according to the instructions webpacker
Procfile

web: bundle exec rails s
webpacker: ruby ./bin/webpack-dev-server

further start and nothing works.
$ foreman start
14:26:16 web.1       | started with pid 10108
14:26:16 webpacker.1 | started with pid 3300
14:26:17 webpacker.1 | yarn run v0.24.6
14:26:17 webpacker.1 | $ "D:\ProjectRuby\myapp\node_modules\.bin\webpack-dev-server" --progress --color --config D:/ProjectRuby/myapp/config/webpack/development.js
14:26:17 webpacker.1 | exited with code 0
14:26:17 system      | sending SIGKILL to all processes
14:26:17 system      | sending SIGKILL to web.1 at pid 10108
14:26:17 web.1       | exited with code 0

If you just run it everything works.
$ ruby ./bin/webpack-dev-server

[email protected] MINGW64 /d/ProjectRuby/myapp (master)
$ yarn run v0.24.6
$ "D:\ProjectRuby\myapp\node_modules\.bin\webpack-dev-server" --progress --color --config D:/ProjectRuby/myapp/config/webpack/development.js
 10% building modules 1/1 modules 0 active
Project is running at http://0.0.0.0:8080/
webpack output is served from http://0.0.0.0:8080/packs/
Content not from webpack is served from D:\ProjectRuby\myapp\public\packs
404s will fallback to /index.html                                                            Hash: 0db7963902c5723d8671                Version: webpack 2.6.1
Time: 5768ms
         Asset      Size  Chunks                    Chunk Names
application.js    860 kB       0  [emitted]  [big]  application
 manifest.json  66 bytes          [emitted]
chunk    {0} application.js (application) 302 kB [entry] [rendered]
   [34] ./app/javascript/packs/application.js 515 bytes {0} [built]
   [35] (webpack)-dev-server/client?http://0.0.0.0:8080 5.68 kB {0} [built]
   [36] ./~/ansi-html/index.js 4.26 kB {0} [built]
   [37] ./~/ansi-regex/index.js 135 bytes {0} [built]
   [39] ./~/events/events.js 8.33 kB {0} [built]
   [40] ./~/html-entities/index.js 231 bytes {0} [built]
   [48] ./~/querystring-es3/index.js 127 bytes {0} [built]
   [51] ./~/sockjs-client/lib/entry.js 244 bytes {0} [built]
   [77] ./~/strip-ansi/index.js 161 bytes {0} [built]
   [78] ./~/url/url.js 23.3 kB {0} [built]
   [79] ./~/url/util.js 314 bytes {0} [built]
   [80] (webpack)-dev-server/client/overlay.js 3.73 kB {0} [built]
   [81] (webpack)-dev-server/client/socket.js 897 bytes {0} [built]
   [83] (webpack)/hot/emitter.js 77 bytes {0} [built]
   [84] multi (webpack)-dev-server/client?http://0.0.0.0:8080 ./app/javascript/packs/application.js 40 bytes {0} [built]
     + 70 hidden modules
webpack: Compiled successfully.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Denezhny, 2018-03-09
@denegny

remove ruby ​​from procfile for dev-server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question