-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support minimalist installations with no
config.ru
or Rakefile
(o…
…r anything other than `Gemfile` really) (#942) * Support minimalist installations with no `config.ru` or `Rakefile` * fix cop * Set key file path expansions on config load * Ensure even with missing initializers files, load paths are expanded
- Loading branch information
1 parent
db50735
commit e05a2ad
Showing
7 changed files
with
52 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
bridgetown-core/lib/bridgetown-core/rack/default_config.ru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# frozen_string_literal: true | ||
|
||
require "bridgetown-core/rack/boot" | ||
|
||
Bridgetown::Rack.boot | ||
|
||
unless defined?(RodaApp) | ||
class RodaApp < Roda | ||
plugin :bridgetown_server | ||
route(&:bridgetown) | ||
end | ||
end | ||
|
||
run RodaApp.freeze.app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,5 @@ | |
class RodaApp < Roda | ||
plugin :bridgetown_server | ||
|
||
route do |r| | ||
r.bridgetown | ||
end | ||
route(&:bridgetown) | ||
end |