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

frank publish puts frankexp-projectname directory on server #37

Open
Peeja opened this issue Mar 14, 2011 · 4 comments
Open

frank publish puts frankexp-projectname directory on server #37

Peeja opened this issue Mar 14, 2011 · 4 comments

Comments

@Peeja
Copy link

Peeja commented Mar 14, 2011

I'm running on on nearlyfreespeech.net, which serves content out of /home/public, so that's what I set my Frank.publish.path to. When I run frank publish, Frank puts my site in a subdirectory within /home/public. I can't configure what directory I serve my files from. Is there a way to make Frank leave the files directly in my Frank.publish.path?

@trvsdnn
Copy link
Owner

trvsdnn commented Mar 14, 2011

It's a result of the way the ssh library handles scp. The only way to really handle it (that i know of) is to have frank delete the folder first. I opted out of that because it seemed dangerous/destructive.

I really just need to re-vist publish for the next release. I would recommend just writing a small shell or ruby script to do frank export and then rsync the exported folder.

I'll close this whenever I have a solid solution.

@Peeja
Copy link
Author

Peeja commented Mar 14, 2011

Could it scp each file in the directory instead of the directory itself?

@trvsdnn
Copy link
Owner

trvsdnn commented Mar 14, 2011

Yeah, but you still run into the problem of stale files. You'd need to delete them on the server before trying to copy the new ones up. I'm open to thoughts/ideas on it though.

@je
Copy link

je commented Apr 3, 2011

i know nothing about ruby, but i removed "frankexp-" from the paths in:

\lib\frank\publish.rb
\spec\publish_spec.rb

and it publishes to the projectname folder now, which is what i wanted; maybe removing #projectname from the same would get you to root.

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