Question re. clone
molipha opened this issue · comments
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...
- http://127.0.0.1:5984/focus/_design/site contains the following couchapp local file structure
scaffold/
a.txt
b.txt...
site/
img/...
css/...
a.html
b.html...
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
Addendum. When I delete the attachments from my local drive and clone, then the updated attachments are cloned to my hard drive.
Hi. I can work around this by deleting the local copy and cloning.
@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? 😄
I think we may prevent user from cloning into non-empty dir.(like git does)
And provide a new option -f
for force clone
.
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.