This minimal Ruby on Rails application runs MaglevCMS, an advanced page builder for Rails, with the Maglev SaaS plugin for multi-site hosting.
- 🌐 Once signed in, users can create as many sites as they want.
- 🎨 A new site is generated from one of the two themes included in the app.
- 🤩 Each site's content is edited with Maglev’s editor UI.
- 🔐 A TLS certificate is generated for each site with a valid domain (this requires a DNS step).
- 📦 A Kamal deployment config is included so you can deploy the app with little setup.
You need a license key for the Maglev SaaS plugin. Visit our site to get your key.
- Ruby 3.4+
- Rails 8.1+
- PostgreSQL / SQLite / MySQL / MariaDB
- Docker (if you want to deploy with Kamal)
git clone https://github.com/maglevhq/site-builder-demo
cd site-builder-demo
bundle install
bundle exec rails db:create
bundle exec rails db:migrate
./bin/devWe use a custom build of Kamal / Kamal-proxy so we can provision dynamic TLS certificates. We hope this pull request will be merged soon. In the meantime, contact us for other options.
As an example, this is the only command we run to deploy a new version of the demo platform in production:
bundle exec kamal deployThe source code of this application, excluding the proprietary Maglev SaaS plugin gem, is available as open source under the terms of the MIT License.