updated files
package.json and package-lock.json updated to include ftp-deploy, sample deploy.js added for future usemaster
parent
ff59df6dea
commit
5e5fb78421
|
@ -0,0 +1,32 @@
|
||||||
|
const FtpDeploy = require("ftp-deploy");
|
||||||
|
const ftpDeploy = new FtpDeploy();
|
||||||
|
|
||||||
|
const config = {
|
||||||
|
user: "user",
|
||||||
|
// Password optional, prompted if none given
|
||||||
|
password: "password",
|
||||||
|
host: "ftp.someserver.com",
|
||||||
|
port: 21,
|
||||||
|
localRoot: __dirname + "/local-folder",
|
||||||
|
remoteRoot: "/public_html/remote-folder/",
|
||||||
|
// include: ["*", "**/*"], // this would upload everything except dot files
|
||||||
|
include: ["*.php", "dist/*", ".*"],
|
||||||
|
// e.g. exclude sourcemaps, and ALL files in node_modules (including dot files)
|
||||||
|
exclude: [
|
||||||
|
"dist/**/*.map",
|
||||||
|
"node_modules/**",
|
||||||
|
"node_modules/**/.*",
|
||||||
|
".git/**",
|
||||||
|
],
|
||||||
|
// delete ALL existing files at destination before uploading, if true
|
||||||
|
deleteRemote: false,
|
||||||
|
// Passive mode is forced (EPSV command is not sent)
|
||||||
|
forcePasv: true,
|
||||||
|
// use sftp or ftp
|
||||||
|
sftp: false,
|
||||||
|
};
|
||||||
|
|
||||||
|
ftpDeploy
|
||||||
|
.deploy(config)
|
||||||
|
.then((res) => console.log("finished:", res))
|
||||||
|
.catch((err) => console.log(err));
|
File diff suppressed because it is too large
Load Diff
|
@ -15,9 +15,10 @@
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@11ty/eleventy": "^1.0.0",
|
"@11ty/eleventy": "^2.0.1",
|
||||||
"@11ty/eleventy-plugin-syntaxhighlight": "^4.2.0",
|
"@11ty/eleventy-plugin-syntaxhighlight": "^4.2.0",
|
||||||
"eslint": "^7.12.1",
|
"eslint": "^7.12.1",
|
||||||
|
"ftp-deploy": "^2.4.5",
|
||||||
"postcss": "^8.4.5"
|
"postcss": "^8.4.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in New Issue