Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Forestry.io integration #12

Closed
symeneses opened this issue Nov 22, 2022 · 5 comments
Closed

Add Forestry.io integration #12

symeneses opened this issue Nov 22, 2022 · 5 comments
Assignees

Comments

@symeneses
Copy link
Contributor

The Theme Is Forestry CMS Supported. This will make the configuration and admin of content accessible to people who don't code. For more details https://forestry.io/

@SangamSwadiK
Copy link
Contributor

Hi, I tested forestry , I was able to add posts and content.
However I ran into some problems in preview server within forestry.

I followed https://forestry.io/docs/troubleshooting/build-issues-for-sites-in-subdirectories/
and did as mentioned, but still facing the same problem.

Apart from that, I was able to write posts and add assets and it directly got committed into the repo.

I used the following settings.

image

image

I think there could be a mistake in what I did, any suggestions on how to fix this ?

Thanks.

@symeneses
Copy link
Contributor Author

@SangamSwadiK could you check the logs? If so, please copy the errors here.

Reading the docs, I would try this configuration:

build:
  preview_docker_image: forestryio/hugo:latest
  preview_command: bundle exec jekyll build
  preview_output_directory: "snowlake-v1.2/_site"
  mount_path: "/srv"
  working_dir: "/srv/snowlake-v1.2"

@SangamSwadiK
Copy link
Contributor

@SangamSwadiK could you check the logs? If so, please copy the errors here.

Reading the docs, I would try this configuration:

build:
  preview_docker_image: forestryio/hugo:latest
  preview_command: bundle exec jekyll build
  preview_output_directory: "snowlake-v1.2/_site"
  mount_path: "/srv"
  working_dir: "/srv/snowlake-v1.2"

Thanks !
I had given the wrong path. I changed it now. The preview is working now.

The preview docker image must be forestryio/ruby:2.6 though.

@symeneses
Copy link
Contributor Author

Great news! Where can we see the preview?
We would need to add instructions in the Contributing guide to add/edit posts using Forestry.

@SangamSwadiK
Copy link
Contributor

I guess I can show it on the call, because once the preview link is created, it can expire soon because of inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants