serkanyersen / sync Goto Github PK
View Code? Open in Web Editor NEWsyncs your local folder with remote folder using scp
License: MIT License
syncs your local folder with remote folder using scp
License: MIT License
Error: Cannot find module 'gulp-typescript'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/node_modules/syncjs/gulpfile.js:2:10)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
I just stumbled over this tool and it VERY useful. However, there have been a few hiccups.
I'm running this from a git bash prompt on windows 10
it should be on npm so that it can be installed globally and run as a script syncjs
name is available
right now syncjs only works from it's own folder. and can only have single config file. it should however work as a script and run from anywhere with given config file.
Do you have any plans to support running build commands on the remote server after a certain file has been uploaded?
For example, I develop locally, sync files to a remote, and then usually run some sort of build command on the remote machine (local builds not possible unfortunately). Allowing me to run a specified command in the folder where the file changed would be excellent. A callback that allows me to refresh the browser locally once that remote command succeeds would be even more dreamy.
add ssl support
How de we use sync js with a id_rsa private key with a passphrase ?
if i use the option 'Ask password during connection' i get
"All configured authentication methods failed"
if on the other hand i use 'Path to private key' with a id_rsa key which needs a passphrase i get
'Error: Encrypted private key detected, but no passphrase given'
Any way to use syncjs under these conditions? or it only works with a PK without a passphrase?
thank you
Hi, this could be quite useful. Do you know if it will work on Windows?
After filling out all the necessary fields of the syncjs init
, the program asks:
Does this look good? (Y/n)
However, it always just exits out of the process.
I have tried this on Command Prompt and Windows PowerShell, and with two different remote servers.
I hope this isn't something stupid I've missed out on, and thank you in advance.
Hi, the FTP keyword is inappropriate here as sync only supports SFTP, not FTP or FTPS.
How to sync changes to multiple dev/test envs?
When i use "syncjs" and dont change any files the connection get lost after about 5 minutes every time. When i ssh into my account without syncjs the connection dont get lost after 5 minutes.
events.js:167
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TCP.onread (net.js:657:25)
Emitted 'error' event at:
at Client.<anonymous> (/Users/xxx/.nvm/versions/node/v10.2.1/lib/node_modules/syncjs/node_modules/scp2/lib/client.js:81:10)
at Client.emit (events.js:182:13)
at Socket.<anonymous> (/Users/xxx/.nvm/versions/node/v10.2.1/lib/node_modules/syncjs/node_modules/ssh2/lib/client.js:215:10)
at Socket.emit (events.js:187:15)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] sync: `syncjs`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] sync script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xxx/.npm/_logs/2019-03-05T16_28_25_262Z-debug.log
luther$
But there still a little problem: is the project support multipath?
For example, I want to scp a(local) to b(remote), and c(local) to d(remote).
Now I wrote the following format, but it didn’t work.
Then what is the corrent format, or did it support the function?
Thanks a million and look forward for your replying.
When syncjs
is running and I make a change to a file, that change is nicely uploaded to the FTP server. It works really fast too. However, if I have made any local changes while syncjs
was not running and then I run syncjs
, these changes do not get uploaded (caught up). Is there any a quick way to upload them?
is it possible to write some additional "ignores" in my config file. I try, but it doesn't work.
{
"username": "xxxxxxxxx",
"password": "xxxxxxxxx",
"host": "xxxxxxxxx",
"localPath": "xxxxxxxxx",
"remotePath": "xxxxxxxxx",
"ignores": [
".package-lock.json"
]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.