This repository demonstrates a bug in Bridgetown 1.2.0.beta4 where initializers do not allow the url
property to change in development mode.
When using bridgetown.config.yml
to set the url
property, Bridgetown is able to override the value when doing local development.
- Run
bin/setup
to install dependencies - Run
bin/bt dev
to start the development server - Navigate to
https://localhost:4000
and see that the URL for the site ishttps://localhost:4000
on the page and the absolute URL for the page ishttps://localhost:4000/
- Stop the server
- Uncomment
config/initializers.rb:2
- Run
bin/bt dev
to start the development server - Navigate to
https://localhost:4000
and see that the URL for the site is nowhttps://example.com
on the page and the absolute URL for the page ishttps://localhost:4000/
- Compare
bridgetown.config.yml
andconfig/initializers.rb
to see that they are configured the same
Most of the files in this repository are boilerplate. The only ones of interest are:
bridgetown.config.yml
config/initializers.rb
src/index.md