From within the directory containing your TrustyCMS instance:
-
Create a new Rails 5.2 application (i.e.
rails new [project_name]
) -
Add the following gems to your Gemfile:
- gem 'trusty-cms'
- gem 'rails-observers'
-
Run
bundle install
-
Run the Trusty CMS generator to get the project into shape:
rails g trusty_cms [project_name]
.- This will ask you if you want to replace a number of existing files (like application.rb); reply Y to all.
-
add config.extensions = [ :snippets, :clipped, :layouts, :multi_site ] to enable them in application.rb
-
Add utf8 encoding to your db.yml
-
Run
bundle exec rake db:setup
,bundle exec rake trusty_cms_engine:install:migrations
, thenbundle exec rake db:bootstrap
.