Rails 7 Docker的开发
我正在尝试通过Bootstrap来获得Rails 7应用程序。如果我更改
CMD ["bin/rails", "s", "-b", "0.0.0.0"]
为
cmd [。/bin/dev“]
或
cmd [“ bin/dev”]
以便工头旋转CSS,JS和Web进程,我会得到
[警告]无法加载命令“ rails/commands/commands/server/server_command”,
如果我用bin/rails运行容器,并且Bootstrap CSS在那里,但是JavaScript弹出率不存在。帮助?
procfile.dev是
web: bin/rails server -p 3000 -b 0.0.0.0
css: yarn build:css --watch
js: yarn build --watch
I'm trying to get a rails 7 app going with bootstrap. At the end of the dockerfile if I change
CMD ["bin/rails", "s", "-b", "0.0.0.0"]
to
CMD ["./bin/dev"]
or
CMD ["bin/dev"]
So that foreman spins up css, js, and web processes, I get
[WARNING] Could not load command "rails/commands/server/server_command"
If I run the container with bin/rails it loads and the bootstrap css is there, but the javascript popovers are absent. Help?
The Procfile.dev is
web: bin/rails server -p 3000 -b 0.0.0.0
css: yarn build:css --watch
js: yarn build --watch
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论