Skip to main content

Web FTP CLI

List of Starsky Projects

starskyWebFtpCli docs

Copy a content package to a ftp server. Run the starskyWebHtmlCli first, to create a 'content package' A 'content package' is a folder with static html files and resized images.

AppSettings

Use the publishProfiles by the starskyWebHtmlCli and add the WebFtp field.

{
"app" :{
"WebFtp": "ftp://username%40qdraw.nl:secret@ftp.qdraw.nl",
"publishProfiles": {
"_default": [
{
"ContentType": "html",
"SourceMaxWidth": 0,
"OverlayMaxWidth": 0,
"OverlayFullPath": "",
"Path": "index.html",
"Template": "Index.cshtml",
"Prepend": "",
"Copy": "true"
},
{
"ContentType": "html",
"SourceMaxWidth": 0,
"OverlayMaxWidth": 0,
"OverlayFullPath": "",
"Path": "index.web.html",
"Template": "Index.cshtml",
"Prepend": "https://media.qdraw.nl/log/{name}",
"Copy": "true"
},
{
"ContentType": "html",
"SourceMaxWidth": 0,
"OverlayMaxWidth": 0,
"OverlayFullPath": "",
"Path": "autopost.txt",
"Template": "Autopost.cshtml",
"Prepend": "https://media.qdraw.nl/log/{name}",
"Copy": "true"
},
{
"ContentType": "jpeg",
"SourceMaxWidth": 1000,
"OverlayMaxWidth": 380,
"Path": "{AssemblyDirectory}/WebHtmlPublish/EmbeddedViews/qdrawlarge.png",
"Folder": "1000",
"Append": "_kl1k",
"Copy": "true"
},
{
"ContentType": "jpeg",
"SourceMaxWidth": 500,
"OverlayMaxWidth": 200,
"Path": "{AssemblyDirectory}/WebHtmlPublish/EmbeddedViews/qdrawsmall.png",
"Folder": "500",
"Append": "_kl",
"Copy": "true"
},
{
"ContentType": "moveSourceFiles",
"Folder": "orgineel",
"Copy": "false"
},
{
"ContentType": "publishContent",
"Folder": "",
"Copy": "true"
},
{
"ContentType": "publishManifest",
"Folder": "",
"Copy": "true"
}
],
"no_logo_2000px": [
{
"ContentType": "jpeg",
"SourceMaxWidth": 2000,
"OverlayMaxWidth": 0,
"Folder": "2000",
"Append": "_kl2k",
"Copy": "true"
}
]
}
}
}