Page 1 of 1

Using sitecopy during Wipy dev

Posted: Sun Nov 08, 2015 10:52 am
by scudderfish
I thought this might be of some interest. I got fed up with manually copying files with FileZilla, and the FTP client in my usual text editor (TextWrangler) wouldn't talk to the wipy. I installed sitecopy from http://www.manyfish.co.uk/sitecopy/ and configured it's .sitecopyrc file like this :-

Code: Select all

site wipy
	server 192.168.1.1
	remote /flash/lib/
	local /Users/dgs/dev/SFL525R/wipy/flash/lib/
	username micro
	password python
	exclude .DS_Store
	exclude LICENSE
	exclude README.md
	exclude .git*
Then I can mirror the contents of my development directories on my desktop to the wipy simply like this :-

Code: Select all

gedge:wipy dgs$ sitecopy -u wipy
sitecopy: Updating site `wipy' (on 192.168.1.1 in /flash/lib/)
Creating onewire/: done.
Creating uDS3231/: done.
Uploading onewire/__init__.py: [.......] done.
Uploading uDS3231/LICENSE: [..] done.
Uploading uDS3231/__init__.py: [..] done.
sitecopy: Update completed successfully.
gedge:wipy dgs$ sitecopy -u wipy
sitecopy: Updating site `wipy' (on 192.168.1.1 in /flash/lib/)
Deleting uDS3231/LICENSE: done.
sitecopy: Update completed successfully.
gedge:wipy dgs$ 
(I changed the config file to exclude the LICENSE file between runs)
Now I don't have to worry about missing a file in a multifile edit session. I hope this is of some use to someone.

Regards,
David

Re: Using sitecopy during Wipy dev

Posted: Sun Nov 08, 2015 10:58 am
by danicampora
Hi scudderfish,

Super cool, thanks for sharing! I will test this and add it to the official docs :-)

Re: Using sitecopy during Wipy dev

Posted: Sun Nov 08, 2015 1:39 pm
by scudderfish
I tried with a node.js package (https://www.npmjs.com/package/ftpsync) in case compiling C code was too scary but it seems to disagree over file listing. I've uploaded a packet capture here https://www.dropbox.com/s/4z0mk1asfsc83 ... ap.gz?dl=0. As far as I can see, the ftp client issues 'list /flash/lib' and the wipy server responds with 'flash' and fun ensues as the client attmpts to recurse down an infinite structure. Sitecopy doesn't seem to try to do anything clever on the remote host and tracks everything clientside to figure out what needs changing.

Re: Using sitecopy during Wipy dev

Posted: Mon Nov 09, 2015 11:52 am
by platforma
What about fatfs under unix? Update applications binary would be a simple copy. I don't know how well it would work though but might be worth a shot.