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

Added serveLocalFiles option to enable fallback to LocalFileStorage #90

Closed
wants to merge 1 commit into from

Conversation

ndbroadbent
Copy link

@ndbroadbent ndbroadbent commented Apr 19, 2020

Fixes #89

This change allows a user to set serveLocalFiles: true, which will also set up the LocalFileStorage adapter to check for local files in content/images/.

I needed this because I was migrating from a Ghost(Pro) installation. I ran wget --recursive to scrape the existing blog and download all the images, and then I committed these images into the repo that I push to Heroku. However, I want to use Cloudinary for any new posts that I write in the future.

I've tested this change on my Ghost blog running on Heroku, and everything works as expected.

…in case blog needs to serve some images from content/images/
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

Successfully merging this pull request may close these issues.

Fall back to images in content/images/ if file exists?
1 participant