Atom editor package to sync files and/or run a script on the server
You can sync local changed files to a server by using an Atom command and/or sync on every save.
Write and edit a script on the local machine with Atom and then run the script on a server using an Atom command and/or run it on every save. You will be able to move existing server scripts to a local project folder and then run them on any server without putting the script on the server.
Run apm install server-script
on the command line or use the settings page.
There is no need to install anything on the server.
Your local machine must have rsync
installed.
Your local machine and the server must have ssh
running. Test that SSH works by executing ssh myUser@myServer.com ls
on the command line. If you need a password to access the server use ssh myUser:myPwd@myServer.com ls
.
server-script:run
. The keybinding ctrl-alt-shift-R
is provided as a default..server-script
was created in the root of your project. Note that each project will have its own folder.server-script:run
command or when saving. You must set up the config file first..server-script
Folder.gitignore
: This is a local version of a .gitignore
file. It contains one entry to block the commit of the file secrets.cson
which contains sensitive login information.
secrets.cson
: Server login information. This doesn't need to be set up if you are using SSH key files and the local user is the same as the user on the server. See the file for instructions.
setup.cson
: General configuation for the server connection and options.
build.sh
: A script file to run on the server. Initially this script just contains an echo
command so that this package can be easily tested. Later you can put your own build script in. Or you can rename or replace this file and put its name in the config file.
setup.cson
)server:
example.com
or 192.168.0.1
~/my-app
options:
no
server-script:run
is executed. If this is blank then nothing is run. Default is build.sh
..gitignore
file. Default is yes
.yes
.Server-script is copyright by Mark Hahn using the MIT license.