comfy / comfy-demo

A simple Rails app with CMS installed
19 stars 7 forks source link

Quickstart #2

Closed scarroll32 closed 6 years ago

scarroll32 commented 6 years ago

Howdy,

I just wanted to quickly get CMS up & running to see what looks like.

So far, I did this:

git clone git@github.com:comfy/comfy-demo.git
cd comfy-demo/
bundle
rails db:migrate
rails s

Then I get the 'site not found' error

screen shot 2018-10-23 at 07 51 10

I was a bit confused by the docs, but then tried the cms seed load, but this errored:

~/src/tmp/comfy-demo (master) $ rake 'comfy:cms_seeds:import[sample-site, demo]'
Importing CMS Seed data from Folder [sample-site] to Site [demo] ...
rake aborted!
ActiveRecord::RecordNotFound: Couldn't find Comfy::Cms::Site with [WHERE "comfy_cms_sites"."identifier" = ?]
/Users/sean/.rbenv/versions/2.5.1/bin/bundle:23:in `load'
/Users/sean/.rbenv/versions/2.5.1/bin/bundle:23:in `<main>'
Tasks: TOP => comfy:cms_seeds:import
(See full trace by running task with --trace)
scarroll32 commented 6 years ago

OK I worked it out, I needed to create the site demo and a layout via /admin, then change the import.

rake 'comfy:cms_seeds:import[demo, demo]'
scarroll32 commented 6 years ago

Was a bit confusing though, a single pre-built app would be nice.

GBH commented 6 years ago

Readme for this demo is pretty explicit about the steps. You need to got to the /admin path and create site before doing anything else. Seeds won't import if there's no existing site defined, but maybe it's something that could be changed to make things easier.

scarroll32 commented 6 years ago

Oh sure, I guess we live in an age of instant gratification :-) I thought I could just pull it and start.

But it's a pretty nice piece of code!