Skip to content

Commit

Permalink
Fix routes to have .html + doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mininao committed May 9, 2023
1 parent f973dfd commit 2da94d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "sidekiq/web"
require "sidekiq/cron/web"

Rails.application.routes.draw do
scope format: true, defaults: { format: 'html' } do
draw(:redirects)

namespace :admin do
Expand Down Expand Up @@ -152,6 +152,6 @@

## robots.txt
get "/robots.txt", to: "pages#robots"

root to: "users#new"
end
root to: "users#new"
end
4 changes: 4 additions & 0 deletions doc/static_site.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
To generate the static site, run `wget --exclude-domains blog.covidliste.com -FEmnH http://localhost:3000/`
Try it out with `ruby -rwebrick -e'WEBrick::HTTPServer.new(:Port => 8000, :DocumentRoot => Dir.pwd).start'`

Hat tip to [Simon Fish](https://simon.fish/blog/static-site-building-with-rails.html) for the help

0 comments on commit 2da94d6

Please sign in to comment.