Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/views/home/index.html.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
h1 recursos

ul
li
= link_to "API docs", "/apipie"
9 changes: 5 additions & 4 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@

after :restart, :clear_cache do
on roles(:web), in: :groups, limit: 3, wait: 10 do
# Here we can do anything such as:
# within release_path do
# execute :rake, 'cache:clear'
# end
within release_path do
with rails_env: fetch(:rails_env) do
execute :rake, 'apipie:cache'
end
end
end
end

Expand Down
1 change: 1 addition & 0 deletions config/initializers/apipie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
config.api_base_url = "/api"
config.doc_base_url = "/apipie"
config.markup = Apipie::Markup::Markdown.new
config.use_cache = Rails.env.production?
config.app_info["1.0"] = <<-EOS
## moi backend api

Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,6 @@
anchor: false,
via: [:get, :post]

root to: redirect("/apipie")
root "home#index"
apipie
end