Not sure if its the correct solution but add a subdirectory 'docs' and use:
```
RspecApiDocumentation.configure do |config|
config.docs_dir = Rails.root.join('public/docs')
...
end
```
and
```
SwaggerUiEngine.configure do |config|
config.swagger_url = '/docs/open_api.json'
...
end
```
This works great in my dev env but when I tried to deploy to aws elasticbeanstalk I am getting an error : "Can't read swagger JSON from http//:...us-east-1.elasticbeanstalk.com/docs/open_api.json". Any idea how to solve this problem?
Are you able to verify that the doc is generated and at that location? You should be able to do an `eb ssh` within the root of your application to SSH into the environment. From there, look under `/var/app/current/public/docs` to see if it is there. If it is, check the URL to see if you're able to access the file. You may also need to edit your `config/environments/production.rb` file and set this entry `config.public_file_server.enabled = true`
Cool, i thought the config you mention might be the issue but the comments said nginx should take care of it so I wasn't sure. I will take a look at your suggestions.
Where i can add path&
Thanx