Skip to content

Commit

Permalink
include rails_env in swagger capistrano task. #260.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Mar 2, 2015
1 parent d2039d8 commit 891c799
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/assets/stylesheets/application.css.scss
Expand Up @@ -529,14 +529,14 @@ dt, dd { line-height: 1.5; }
#rss { padding: 1em; }
.exampleOutput { padding-bottom: 10px; }
// customize swagger-ui formatting
.swagger-ui-wrap, .swagger-ui-wrap p, form.sandbox table, form.sandbox table .model-signature, .swagger-ui-wrap .container #resources .resource .heading h2, .swagger-ui-wrap .container #resources .resource .heading .options{ font-family: $font-family-base; }
.swagger-ui-wrap, .swagger-ui-wrap p, form.sandbox table, form.sandbox table .model-signature, .swagger-ui-wrap .container #resources .resource .heading h2, .swagger-ui-wrap .container #resources .resource .heading .options { font-family: $font-family-base; }
.container .container { padding: 0; }
.container #swagger-ui-container { margin: 0; }
#api_info .info_title { font-size: $font-size-h1; }
#api_info .info_description { font-size: $font-size-base; line-height: $line-height-base; }
#api_info .info_description a { color: $link-color; }
.swagger-ui-wrap .code, form.sandbox table .codefont-family: $font-family-monospace; }
form.sandbox input { font-size: 0.9em; }
form.sandbox input { font-family: $font-family-base; font-size: 0.9em; }

// make the scrollbar always visible
html { overflow: -moz-scrollbars-vertical; overflow-y: scroll; }
Expand Down
4 changes: 3 additions & 1 deletion lib/capistrano/tasks/swagger.cap
Expand Up @@ -4,7 +4,9 @@ namespace :swagger do
task :docs do
on roles(:app) do
within release_path do
rake 'swagger:docs'
with rails_env: fetch(:rails_env) do
rake 'swagger:docs'
end
end
end
end
Expand Down

0 comments on commit 891c799

Please sign in to comment.