Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

Latest commit

 

History

History
49 lines (42 loc) · 1.95 KB

README.md

File metadata and controls

49 lines (42 loc) · 1.95 KB

trusty_blank

A blank instance of a TrustyCMS site, to be used for testing.

Getting started

  1. Clone this repo to your local machine.
  1. Clone trusty-cms to your local machine, too.
  1. Clone required extensions to your local machine
  1. Rename Gemfile.example to Gemfile
  2. Change the :path for the trusy-cms gem & extensions to point to the folder where you cloned the trusty-cms repo.
  • it'll look like this: gem "trusty-cms", :path => '../trusty-cms'
  1. Rename config/database.yml.example to config/database.yml and edit to match the username, password, and host of your local mysql setup.
  2. Run 'bundle install' to install all gems.
  3. Set up the database
  • rake db:create
  • rake db:bootstrap
  • rake trusty:seed
  1. The bootstrap script will ask you some questions.
  • when asked if you're sure, answer 'y'
  • Leave Name, Username, and Password as defaults by hitting enter when prompted
  1. That should do it. If you 'rails s' a server should start.

Notes

In order for ckeditor to work at present, it must be required in the application.rb file of the site after requiring trusty_cms.

Like so:

require 'rails/all' require 'trusty_cms' require 'ckeditor' require 'radius' require 'trusty_cms/extension_loader' require 'trusty_cms/initializer' require 'string_extensions/string_extensions' require 'active_record_extensions/active_record_extensions' require 'configuration_extensions/configuration_extensions' require 'compass' require 'rack/cache'