rswag

How to Use Swagger with Rails dockerized project

江枫思渺然 提交于 2021-01-29 15:19:02
问题 hope you are fine Actually, I have to make documentation of my rails APIs & for this, I integrate gem rswag in my application and follow the documentation step by step but when I run RAILS_ENV=test rails g rswag:specs:install I stuck in an error Can't connect to local MySQL server through socket '/authenticate/tmp/sockets/puma.sock' but I don't know as my app is dockerized , if I have to user Swager docker image or, make a MySql service in dockercompose.yml to solve this issue ? 来源: https:/