syncs your local folder with remote folder using scp
Syncjs is an easy to use command line tool for uploading your local changes to a remote server.
It’s useful in situations where your application needs to be on a remote server to run (dev machines, pubdev environments, etc.) but you still want to use your local environment for development. You can simply map you local copy of the project to the remote version and syncjs will do the rest.
This example shows usage with Visual Studio Code but since it’s an external script, you can use it with any editor you want.
Syncjs is easy to install, just execute the following
npm install -g syncjs
After this you’ll have syncjs
binary available to you.
Syncjs comes with an init script and sets itself up for you. All you need to do is to cd
into your projects directory and run syncjs init
it will ask few simple questions and create the config file called sync-config.json
make sure you include this file in your .gitignore
because this file might contain passwords or secrets depending on your preferences.
cd /my/project/folder
syncjs init
Auth method:
syncjs
your password will not be stored anywhere.Hostname or IP of the server: Tell syncjs where to connect
22
this usually is what you wantMIT