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 tmp exists at app root, and use it #575

Merged
merged 2 commits into from May 6, 2016
Merged

Ensure tmp exists at app root, and use it #575

merged 2 commits into from May 6, 2016

Conversation

drench
Copy link
Contributor

@drench drench commented May 6, 2016

This is partially from https://github.com/tablexi/nucore-dartmouth/pull/38. We need tmp to exist at the app root, and it does, though it seems it's only because gems like sprockets and letter_opener will create it if it's not there.

This also reworks the only code I'm aware of that was relying on Dir.tmpdir, in journal creation. With this in place, some of the overrides in the DC fork may become redundant.

Dan Rench added 2 commits May 6, 2016 09:27
This avoids writing predictable filenames to /tmp (where Dir.tmpdir often points
on Linux), and writes to a directory that we should count on being writable (we
have found /tmp not always writable to the app in some envionments).
@jhanggi
Copy link
Contributor

jhanggi commented May 6, 2016

👍

@drench drench merged commit 4bbd943 into master May 6, 2016
@drench drench deleted the tmp_dir branch May 6, 2016 17:07
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

2 participants