-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace dploy package with ftp-deply, added new deploy config, remove…
… old dploy config
- Loading branch information
Showing
3 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
const path = require('path'); | ||
const config = require('./site.config'); | ||
const FtpDeploy = require('ftp-deploy'); | ||
|
||
const ftpDeploy = new FtpDeploy(); | ||
|
||
ftpDeploy.deploy({ | ||
// FTP username | ||
user: 'username', | ||
|
||
// FTP Password | ||
password: 'password', | ||
|
||
// FTP Host | ||
host: 'ftp.yourwebsite.com', | ||
|
||
// FTP Port | ||
port: 21, | ||
|
||
// Local folder to upload | ||
localRoot: path.join(config.root, config.paths.dist), | ||
|
||
// Remote FTP folder to upload to | ||
remoteRoot: '/public_html/', | ||
|
||
// Define what files to include in the upload (by default, upload everything in dist/ folder) | ||
include: ['**/*'], | ||
|
||
// Remove files in FTP folder before uploading | ||
deleteRemote: true, | ||
|
||
// FTP Mode | ||
forcePasv: true, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters