bogdan_uman
@bogdan_uman
шлЫмазл неукЪ-поцЪ

Rail + Webpacker + Foreman?

Здравствуйте. У меня Winows 10 x64. Создал по инструкции webpacker
Procfile
web: bundle exec rails s
webpacker: ruby ./bin/webpack-dev-server


дальше запуск и ничего не работает.
$ 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


Если просто запустить, то все работает
$ ruby ./bin/webpack-dev-server

User@LENG500 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.
  • Вопрос задан
  • 814 просмотров
Пригласить эксперта
Ответы на вопрос 1
denegny
@denegny
уберите ruby в procfile для dev-server
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы