[Bridgetown](https://www.bridgetownrb.com) is a Ruby based static site generator. Being Ruby is awesome already, but with the new [dynamic routes](https://www.bridgetownrb.com/docs/routes) feature and [support for Turbo](https://www.bridgetownrb.com) it could be a really powerful site builder. Static for most things, and dynamic content provided by [Turbo](https://turbo.hotwired.dev/)!
Bridgetown is a Ruby based static site generator. Being Ruby is awesome already, but with the new dynamic routes feature and support for Turbo it could be a really powerful site builder. Static for most things, and dynamic content provided by Turbo!
To test things out, I converted an older Jeklly based site, Proofreader.io.
I'm assuming you have Dokku already setup and a Bridgetown site ready to deploy. From the projects root directory, these are the things we need.
Add a post build script for Dokku to build static files and assets.
"heroku-postbuild": "bin/bridgetown deploy"
Next, create a proc file for Dokku to run. We need to change the port to 5000, the default for Dokku.
web: bin/bridgetown start -B tcp://0.0.0.0:5000
Add the Linux platform for bundler.
bundle lock --add-platform x86_64-linux
Deploy to Dokku
I set my DOKKU_HOST with Direnv on a project by project basis.
Don't forget to add
Create a Dokku app and add some required environment vars, add your domains, and setup TLS.
dokku apps:create proofreader
dokku config:set --no-restart BRIDGETOWN_ENV=production DOKKU_LETSENCRYPT_EMAIL=<your@email>
dokku domains:add proofreader.io
dokku domains:add www.proofreader.io
git push dokku main
Assuming all goes well, we'll have a Bridgetown site up and running, supporting dynamic routes!
https://dokku.com/docs/deployment/application-deployment/ https://www.bridgetownrb.com/docs/deployment https://edge.bridgetownrb.com/docs/routes