From 2e2a99cfb358202261e1b4d383f2e17eabcc437a Mon Sep 17 00:00:00 2001 From: Frank Tovar Date: Thu, 5 Feb 2026 00:45:24 +0100 Subject: [PATCH] Adjusted deploy script --- AGENTS.md | 3 ++- scripts/deploy-ftp.ps1 | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 9f7940b..02ffab9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,8 +2,9 @@ Also see the other related files: API.md, IIS.md, SPEC.md -## Working Style +## Rules +- web.config in the server is different than locally, it must be exluded from deployment. - After every iteration, do a git commit with a brief summary of the changes as a commit message. - If you find unexpected changes in the code (deletions, changes, diff results that were not communicated.), never revert them and never restore the old state. Assume that those changes happened with intent. - After changing the backend, feel free run "dotnet build" and "dotnet ef database update". If this is blocked by a running dotnet process, feel free to kill the process and retry the operations once. diff --git a/scripts/deploy-ftp.ps1 b/scripts/deploy-ftp.ps1 index f29ae98..c52cd91 100644 --- a/scripts/deploy-ftp.ps1 +++ b/scripts/deploy-ftp.ps1 @@ -15,7 +15,7 @@ $WinRmComputer = "xTr1m.com" $WinRmCredentialUser = "Administrator" $UseWinRmHttps = $true # set false if using HTTP + TrustedHosts $RemoteSitePath = "C:\Inetpub\vhosts\xTr1m.com\httpdocs\picknplay" -$RunEfMigrations = $true # set to $false to skip remote database update +$RunEfMigrations = $false # set to $false to skip remote database update <#! .SYNOPSIS @@ -102,7 +102,7 @@ option confirm off open ftp://$($FtpUser):$($Password.Replace('`n','').Replace('`r',''))@$FtpHost lcd $PublishDir cd $RemoteDir -synchronize remote . -delete -filemask="|App_Data/;logs/" +synchronize remote . -delete -filemask="|web.config;App_Data/;logs/" exit "@ | Set-Content -Path $tempScript -Encoding UTF8