Beam Up: CLI to deploy static sites
Beam Up is a command-line tool I wanted for some time. Its goal is to make deployments of static sites across various providers simpler from your machine: run one command: beam_up ./output/. ❤️
If you feel generous, head over to the GitHub repo and give it a star! 🌟
Installation and configuration
To install Beam Up, run:
gem install beam_up
Then initialize a configuration file for your chosen provider with:
beam_up init # to start an interactive process, or:
# beam_up init hetzner
This creates a .beam_up.yml file:
provider: netlify
netlify:
api_token: your_token_here
project_id: your_project_id
Ready to beam ⚡
Now you can deploy your static site using the super fun beam_up command:
beam_up ./output
Beam Up supports multiple providers including AWS S3, Seal Static, Hetzner, Netlify and Statichost. Oh, and it even works with SFTP (remember those days?!).
Usage from Ruby
Beam Up can also be used within Ruby scripts:
require "beam_up"
BeamUp.deploy! "./output"
Integration with Perron
While Beam Up is designed to work with any SSG (Jekyll, Middleman or Bridgetown), I built it for Perron. With the latest version, you can now simply run bin/rails perron:deploy, it will build your site (bin/rails perron:build) and deploy it: your site will be live in no time. Without any config, it will default to deploy to Seal Static (where an account is created for you on first deploy). Cool, right? 😎
Beam Up is a small, new OSS project made with ❤️ from Rails Designer HQ. If you like it, do star it on GitHub and give it a try on your (next) SSG project.
Want to read me more?
-
Introducing Perron: Rails-based static site generator
Introducing a new, OSS static site generator based on Rails: Perron. Build your next static site using the framework you love. -
Perron 1.0 here is here
Perron 1.0 is here. Nine months in the making, packed with powerful features like programmatic SEO, live reload with DOM morphing and feeds out of the box. -
New in Rails Designer: the Command Menu Component
New in Rails Designer: add a Command Menu Component to your Rails app. Powered by ViewComponent, Tailwind CSS and Hotwire, it's simple to integrate in any modern Rails app.
Over to you…
What did you like about this article? Learned something knew? Found something is missing or even broken? 🫣 Let me (and others) know!
Comments are powered by Chirp Form
{{comment}}