Spina CMS
Getting started with Spina CMS
Used 75 times
B
Bram Jetten
Usage
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
Links
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"