Skip to content

arawinters/sync-to-aio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sync to AIO script

A convenient little script to let me kick off a maven based build on a local feature branch and deploy it to an remote environment. preferably without any manual intervention.

pass the -h flag to get a full list of options.

node sync -h

Requirements

this script is packaged as a submodule to limit dependency bloat on the parent project. go to the root of the script(this directory). to run the script from the package directory itself do:

npm install
node sync -h

By default, this script is located some five levels deep inside the parent project(from where maven is executed). You'll most likely have to change that if this is being used on something other than what it was originally written for. Might be a good starting point, or code snippet so I'm gonna leave this here.

Usage:

build/transfer/backup/xplode using settings specified in deployment-config.json

node sync

skip build if tar.gz already present

node sync -s

build and deploy to .277

node sync -i 10.16.139.277

build and deploy using alternate auth details.

node sync -u mickeyMouse -p mickyspass -i 10.16.139.277

Authentication

Configuration File

A json file can be created in the root of the project directory, which contains the necessary options so you dont have to specify host/user/pass each time. this is necessary for one-click deployment.. yknow, if thats like a thing you want.

see: https://atom.io/packages/sftp-deployment

Command line

The username and password can be specified at run time via the -u and -p flags. see: last example above.

About

I small module I use for executing a maven build, then scp'ing, and exploding it on a production server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors