Parameterize FTP deployment with environment profiles
This commit is contained in:
31
scripts/deploy-ftp.profile.sample.psd1
Normal file
31
scripts/deploy-ftp.profile.sample.psd1
Normal file
@@ -0,0 +1,31 @@
|
||||
@{
|
||||
# Required publish settings
|
||||
ProjectPath = "..\GameList.csproj"
|
||||
Configuration = "Release"
|
||||
Runtime = "win-x64"
|
||||
PublishDir = "$env:TEMP\GameList-publish"
|
||||
SelfContained = $false
|
||||
|
||||
# Required sync settings
|
||||
WinScpPath = "C:\Program Files (x86)\WinSCP\WinSCP.com"
|
||||
RemoteDir = "/httpdocs/picknplay"
|
||||
|
||||
# Preferred: use a named WinSCP stored session (no credential string in script)
|
||||
WinScpSessionName = "picknplay-prod"
|
||||
|
||||
# Optional FTP URL fallback if no stored session is configured
|
||||
# FtpHost = "example.com"
|
||||
# FtpUser = "deploy-user"
|
||||
|
||||
# Optional IIS recycle and WinRM controls
|
||||
RecycleAppPool = $true
|
||||
AppPoolName = "picknplay-app-pool"
|
||||
WinRmComputer = "example.com"
|
||||
WinRmCredentialUser = "Administrator"
|
||||
UseWinRmHttps = $true
|
||||
WinRmAuth = "Basic"
|
||||
|
||||
# Optional remote migration
|
||||
RunEfMigrations = $false
|
||||
RemoteSitePath = "C:\Inetpub\vhosts\example.com\httpdocs\picknplay"
|
||||
}
|
||||
Reference in New Issue
Block a user