These are chat archives for jescalan/roots

9th
Dec 2015
RJ Lewis
@justrjlewis
Dec 09 2015 16:17
Okay - so I'm trying to run the model generator for sprout-static-cms per the docs/webinar and I'm getting an error about my access token being invalid. Currently the system asks for an access token and a management token, but contentful provides a production token and a preview token. Also, if I leave the management token blank/commented out, or deleted, the error becomes that an access token is needed. I THINK the error itself stems from the model generator running
GET https://api.contentful.com:443/spaces/[space_id]?access_token=[access_or_management_token] instead of GET https://cdn.contentful.com/… , but carrot/sprout-static-cms#7 suggested that should be fixed. I updated the package and it’s still not working. any ideas…?
Steve Sunderland
@stevesunderland
Dec 09 2015 18:59
hey guys, I'm working on a site with roots and roots-contentful and the build seems to fail when there are drafts/unpublished entries in Contentful. Has anyone else experienced this and/or know how to fix it?
RJ Lewis
@justrjlewis
Dec 09 2015 19:01
@stevesunderland Were you able to get the model generator to work? That's where I'm stuck.
Steve Sunderland
@stevesunderland
Dec 09 2015 19:01
@justrjlewis I don't know what the model generator is :worried:
RJ Lewis
@justrjlewis
Dec 09 2015 19:05
:+1: In the docs there's a command with the sprout-static-cms template that's supposed to generate the custom fields that you use for each post sprout run static-cms model Post title:text description:text...which isn't working as expected.
This message was deleted