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

Revert "fix tmp/restart.txt path" #225

Merged
merged 1 commit into from
Sep 7, 2014
Merged

Revert "fix tmp/restart.txt path" #225

merged 1 commit into from
Sep 7, 2014

Conversation

gabskoro
Copy link
Member

@gabskoro gabskoro commented Sep 7, 2014

Reverts #208

@gabskoro
Copy link
Member Author

gabskoro commented Sep 7, 2014

My bad, actually this works, you just need to create /tmp folder if it doesn't exists

queue "mkdir -p #{deploy_to}/#{current_path}/tmp"
queue "touch #{deploy_to}/#{current_path}/tmp/restart.txt"

gabskoro added a commit that referenced this pull request Sep 7, 2014
@gabskoro gabskoro merged commit 595efce into master Sep 7, 2014
@zigomir
Copy link
Contributor

zigomir commented Sep 7, 2014

Ah, ok maybe just document this in README too ;)

dvdhsu added a commit to dvdhsu/mina that referenced this pull request Sep 15, 2014
In mina-deploy#225, gabskoro noted that the tmp folder might not
exist in all Rails projects. So, touching restart.txt won't actually do
anything.

This creates the tmp directory, in case it doesn't exist, with mkdir -p.
Unfortunately, there isn't a flag for touch which forces intermediate
directory creation, we've got to use a separate command.
dvdhsu added a commit to dvdhsu/mina that referenced this pull request Sep 15, 2014
In mina-deploy#225, gabskoro noted that the tmp folder might not
exist in all Rails projects. So, touching restart.txt won't actually do
anything.

This creates the tmp directory, in case it doesn't exist, with mkdir -p.
Unfortunately, there isn't a flag for touch which forces intermediate
directory creation, so we've got to use a separate command.
@dvdhsu
Copy link
Contributor

dvdhsu commented Sep 15, 2014

I was using Mina yesterday, and the tmp directory didn't exist. So, I mkdir -p'd it. This is exactly what gabskoro was referring to.

Looking at Github, it seems like this is a documented issue. So, I've fixed that, and created #229.

@d4be4st d4be4st deleted the revert-208-patch-1 branch September 17, 2016 19:39
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.

3 participants