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

Ensure cache path exists #176

Closed
wants to merge 1 commit into from
Closed

Conversation

esposito
Copy link

@esposito esposito commented Jan 9, 2014

In some Rails projects the tmp and/or cache dir is not committed to the git repository. In these cases starting the application fails with the error:

Error: Errno::ENOENT: No such file or directory - /path/to/repository/tmp/cache/i18n-js.yml

This is fixed by making sure the cache_path.dirname exists before attempting to create the cache file.

@kramerdog
Copy link

I have also just experienced this error.

Other than to circumvent this problem, I dont know why you would commit a temporary folder to Git?

Surely this is a bug and the ../tmp/cache folder should be created as required?

@kramerdog
Copy link

Sorry @esposito. Now I look more closely I see that you have already committed the fix to master.

You obviously DID think it was a bug too! At first sight I thought you were only offering a workaround.

Thanks.

@PikachuEXE
Copy link

Branches have been moved around guys :)

@PikachuEXE PikachuEXE closed this Apr 22, 2014
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.

None yet

3 participants