2 Commits
2.0.0 ... 2.0.1

Author SHA1 Message Date
domaindrivendev
0c49c7e667 Ensure npm install runs during the deploy rswag-ui job 2018-05-24 08:58:19 -07:00
Richard Morris
e52ea0ba69 Update readme 2018-05-21 16:18:30 -07:00
2 changed files with 4 additions and 2 deletions

View File

@@ -44,7 +44,9 @@ jobs:
tags: true
- stage: publish components
script: 'cd rswag-ui'
script:
- 'cd rswag-ui'
- 'npm install'
deploy:
gemspec: rswag-ui.gemspec
provider: rubygems

View File

@@ -494,7 +494,7 @@ rails g rswag:ui:custom
This will add a local version that you can modify at _app/views/rswag/ui/home/index.html.erb_
### Publish UI Assets with "assets:precompile:
### Serve UI Assets Directly from your Web Server
Rswag ships with an embedded version of the [swagger-ui](https://github.com/swagger-api/swagger-ui), which is a static collection of JavaScript and CSS files. These assets are served by the rswag-ui middleware. However, for optimal performance you may want to serve them directly from your web server (e.g. Apache or NGINX). To do this, you'll need to copy them to the web server root. This is the "public" folder in a typical Rails application.