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.
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
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-Ris provided as a default.
.server-scriptwas created in the root of your project. Note that each project will have its own folder.
server-script:runcommand or when saving. You must set up the config file first.
.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.
server-script:runis executed. If this is blank then nothing is run. Default is
.gitignorefile. Default is
Server-script is copyright by Mark Hahn using the MIT license.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.