Middleman is one of our favorite static site generators here at BitBalloon.
This site is built with Middleman and we recently launched StaticGen, a directory of open-source static site generators, powered by Middleman.
Our new middleman-bitballoon extension now makes it even easier to deploy Middleman built sites to BitBalloon.
Using the Plugin
middleman-bitballoon extension adds a
middleman deploy command to Middleman.
middleman-bitballoon to the Gemfile of you Middleman project:
And then run
Before you can deploy, you’ll need to configure the extension in your config.rb:
activate :bitballoon do |bitballoon| bitballoon.token = ENV["BB_TOKEN"] bitballoon.site = "my-bitballoon-site.bitballoon.com" # Optional: always run a build before deploying bitballoon.build_before = true end
We recommend setting the Access Token from an environment variable, but obviously you can also load it from a file or hardcode it in your config.rb.
To generate a token, just go to the BitBalloon Applications screen and create a personal token.
Once the project has been configured right, you can deploy at any time with:
bundle exec middleman deploy
Interested in Continuous Deployment?
We now recommend using netlify for Continuous Deployment.
It's our premium hosting platform and makes settings up continuous deployment of any static site as simple as it gets.