Spina CMS

Getting started with Spina CMS
Used 36 times
Created by
B Bram Jetten


Spina CMS requires a PostgreSQL database. You can create a new Rails app using postgres with this command:

rails new yourwebsite -d postgresql

You can do it all in one go:
rails new yourwebsite -d postgresql -m https://railsbytes.com/script/zmnsDN


Run this command in your Rails app directory in the terminal:

rails app:template LOCATION="https://railsbytes.com/script/zmnsDN"

Template Source

Review the code before running this template on your machine.

# Create the db if it doesn't exist yet
run "rails db:migrate 2>/dev/null || rails db:create"

# Install ActiveStorage
rails_command "active_storage:install"

# Add Spina
gem "spina"
run "bundle install"

# Run the installer
generate "spina:install"
© 2020 GoRails, LLC