1. Install remote-sync package (local)
We can use the
remote-sync package to connect to an Ubuntu remote server via
FTP. Read more about
remote-sync here: https://atom.io/packages/remote-sync
Open Atom and select File > Settings > Install
In the Search Packages text box, type
remote-syncand hit enter. Then click Install from the search results.
2. Configure remote-sync (local)
For this step we will assume that Atom is being used locally to modify a project folder hosted on a remote server (e.g. Ubuntu)
Create an empty folder on your local machine. We will use this as the local project folder for Atom
In Atom select File > Add Project Folder. Browse to and select the folder created in the previous step, then click Select Folder.
Right-click the project folder in Atom and select Remote Sync > Configure
I’ve previously configured
scp uses) in Ubuntu, and a loopback in VirtualBox to allow access to Ubuntu via PuTTY to
localhost:3022. If you haven’t done this step, check out my article on remote-atom.
Enter Hostname as
Enter Port as
Enter the Target directory to your project folder on the remote server, e.g.
For simplicity I’m going to use password authentication.
- Toggle from privatekey to password and enter your password
There are other options we can set as well, like uploadOnSave, which I’ll also select.
- Click Save
3. Download project folder (local)
- In Atom Right-click the project folder and select Remote Sync > Download folder
We can see what Remote Sync is doing in the console at the bottom of the Atom window. If everything is setup correctly and working you should see something like:
Connecting: email@example.com:3022 Download: /home/someone/myproject/somefile.js .... Downloaded all files: C:\....
When it’s finished you should see all the folders and files from the Ubuntu target directory available in Atom. On save of a file, it will be automatically synced back to Ubuntu (assuming you selected
uploadOnSave in a previous step).
If you’re working with the Solidity language, Atom has a package for syntax highlighting called language-ethereum.