Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 如何配置docker以使用byebug?_Ruby On Rails_Docker_Docker Compose - Fatal编程技术网

Ruby on rails 如何配置docker以使用byebug?

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

我有一个传统的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调试我的Rails应用程序

我尝试过这个,但没有任何运气:

web: ...
  stdin_open: true
  tty: true
  $ docker-compose up -d

  $ docker attach app_web_1