Ruby on rails 如何配置docker以使用byebug?
我有一个传统的Rails 5.1应用程序。我们最近开始使用docker compose。我们使用puma和nginx启动应用程序,如:Ruby on rails 如何配置docker以使用byebug?,ruby-on-rails,docker,docker-compose,Ruby On Rails,Docker,Docker Compose,我有一个传统的Rails 5.1应用程序。我们最近开始使用docker compose。我们使用puma和nginx启动应用程序,如: bundle exec puma -d && nginx -g "daemon off;" 对pots使用此映射: version: '3' services: ... web: ports: - 3001:80 工作正常(但我看不到rails应用程序中的任何日志)。 我需要能够使用byebug gem调试我的Ra
bundle exec puma -d && nginx -g "daemon off;"
对pots使用此映射:
version: '3'
services:
...
web:
ports:
- 3001:80
工作正常(但我看不到rails应用程序中的任何日志)。
我需要能够使用byebug gem调试我的Rails应用程序
我尝试过这个,但没有任何运气:
web: ...
stdin_open: true
tty: true
$ docker-compose up -d
$ docker attach app_web_1