2.0.0 • Published 5 years ago

grunt-ftpress v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Grunt Ftpress

Grunt enhanced file transfer with speed in mind.

Build Status NPM Version Licensen

Installation

apt-get install lftp
npm install grunt-ftpress

Usage

Load the task:

grunt.loadNpmTasks('grunt-ftpress');

Config the task:

grunt.initConfig(
{
	ftpress:
	{
		name:
		{
			src:
			[
				'build'
			],
			dest: '.',
			options:
			{
				url: null,
				username: null,
				password: null,
				protocol: 'ftp',
				host: null,
				port: 21,
				commandArray:
				[
					'mirror {SOURCE} {TARGET} --reverse --delete-first --parallel=10 --use-pget-n=10',
					'exit'
				],
				debug: false,
				verbose: false,
				haltOnError: false,
				errorArray:
				[
					'Connection refused',
					'Not connected',
					'Permission denied'
				]
			}
		}
	}
});

Zero downtime pattern:

command:
[
	'mirror {SOURCE} {TARGET}-new-{TIMESTAMP} --reverse --delete-first',
	'mv {TARGET} {TARGET}-old-{TIMESTAMP}',
	'mv {TARGET}-new-{TIMESTAMP} {TARGET}',
	'rm -rf {TARGET}-old-{TIMESTAMP}',
	'exit'
]

Run the task:

grunt ftpress
2.0.0

5 years ago

2.0.0-beta.2

5 years ago

2.0.0-beta.3

5 years ago

2.0.0-beta.1

5 years ago

1.6.0-beta.1

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.5.0-beta.1

5 years ago

1.4.0

5 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

1.0.0-beta.6

7 years ago

1.0.0-beta.5

7 years ago

1.0.0-beta.2

7 years ago

1.0.0-beta.1

7 years ago