A blank instance of a TrustyCMS site, to be used for testing.
- Clone this repo to your local machine.
- git clone [email protected]:pgharts/trusty_blank.git
- Clone trusty-cms to your local machine, too.
- git clone [email protected]:pgharts/trusty-cms.git
- Clone required extensions to your local machine
- git clone [email protected]:pgharts/trusty-snippets-extension.git
- git clone [email protected]:pgharts/trusty-clipped-extension.git
- git clone [email protected]:pgharts/trusty-share-layouts-extension.git
- git clone [email protected]:pgharts/trusty-multi-site-extension.git
- git clone [email protected]:pgharts/trusty-reorder-extension.git
- git clone [email protected]:pgharts/trusty-rad-social-extension.git
- Rename Gemfile.example to Gemfile
- 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'
- Rename config/database.yml.example to config/database.yml and edit to match the username, password, and host of your local mysql setup.
- Run 'bundle install' to install all gems.
- Set up the database
- rake db:create
- rake db:bootstrap
- rake trusty:seed
- 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
- That should do it. If you 'rails s' a server should start.
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'