svassr / grunt-ftp

Upload files to an FTP-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grunt-ftp Build Status

Upload files to an FTP-server

Useful for uploading and deploying things.

Install

$ npm install --save-dev grunt-ftp

Usage

require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
	ftp: {
		options: {
			host: 'website.com',
			user: 'johndoe',
			pass: '1234'
		},
		upload: {
			files: [{
				cwd: 'src',
				src: ['**/*'],
				dest: 'public_html'
			}]
		}
	}
});

grunt.registerTask('default', ['ftp']);

Options

host

Required
Type: string

port

Type: number
Default: 21

user

Type: string
Default: 'anonymous'

pass

Type: string
Default: '@anonymous'

License

MIT © Sindre Sorhus

About

Upload files to an FTP-server

License:MIT License


Languages

Language:JavaScript 100.0%