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

Question re. clone #196

Open
molipha opened this issue Nov 9, 2015 · 5 comments
Open

Question re. clone #196

molipha opened this issue Nov 9, 2015 · 5 comments

Comments

@molipha
Copy link

molipha commented Nov 9, 2015

Hi,

When I run the command... " couchapp -d clone http://127.0.0.1:5984/focus/_design/site . ", I do not get updated attachments. Is this correct?

To explain...

I create my web site from the browser, by calling a javascript routine which uses the attachments in the 'scaffold directory', adding info based on documents in the db and generating the results in the folder 'site'.

My problem is I can't clone the site to my local drive, the updated 'site' files do not arrive.

Running clone -d does not mention any attempt to retrieve the documents in the _attachments 'directory' so I'm wondering if it is supposed to or not.

Many thanks

@molipha
Copy link
Author

molipha commented Nov 9, 2015

Addendum. When I delete the attachments from my local drive and clone, then the updated attachments are cloned to my hard drive.

@molipha
Copy link
Author

molipha commented Nov 9, 2015

Hi. I can work around this by deleting the local copy and cloning.

@iblislin
Copy link
Collaborator

@molipha This is expect behavior. Because we always assume user will clone whole app into a new dir. If the dist is not a new dir, we only overwirde views, shows, lists, filters and updates.

If you need some method like syncing, how about tell us your proposal? 😄

@iblislin
Copy link
Collaborator

I think we may prevent user from cloning into non-empty dir.(like git does)
And provide a new option -f for force clone.

@molipha
Copy link
Author

molipha commented Nov 10, 2015

Hi and thanks for the response. I guess in my case the ability to pull updated attachments would be helpful. On the other hand it is not that difficult to work around.


On Tue, 11/10/15, Iblis Lin notifications@github.com wrote:

Subject: Re: [couchapp] Question re. clone (#196)
To: "couchapp/couchapp" couchapp@noreply.github.com
Cc: "molipha" mmtraduccion@gmail.com
Received: Tuesday, November 10, 2015, 12:15 AM

@molipha This is
expect behavior. Because we always assume user will
clone whole app into a new dir. If the dist is
not a new dir, we only overwirde views,
shows, lists, filters
and updates.

If you need some method like syncing, how about tell us
your proposal?


Reply to this email directly or view
it on GitHub.

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

2 participants