Error in powershell, more backups and updates readme for beta

This commit is contained in:
Sebastiaan Janssen
2014-10-28 10:55:57 +01:00
parent 0c33fa0421
commit 8c69bb400b
2 changed files with 18 additions and 1 deletions

View File

@@ -2,6 +2,11 @@ A note about running Umbraco from Visual Studio.
Don't forget to build!
BETA Notice: We've done our best to transform your config files, we are testing this in 7.2 beta and would love to
hear back if it didn't work so we can improve this feature. We'd love to see your before and after config files
(make sure to delete sensitive data like passwords and API keys) in the issue tracker at http://issues.umbraco.org/
Remember, we backed up your files in App_Data\NuGetBackup so you can find the original file before it was transformed.
When upgrading your website using NuGet you should answer "No" to the questions to overwrite the Web.config
file (and config files in the config folder).

View File

@@ -14,6 +14,15 @@ if ($project) {
$webConfigSource = Join-Path $projectDestinationPath "Web.config"
Copy-Item $webConfigSource $backupPath -Force
# Backup config files folder
$configFolder = Join-Path $projectDestinationPath "Config"
if(Test-Path $configFolder) {
$umbracoBackupPath = Join-Path $backupPath "Config"
New-Item -ItemType Directory -Force -Path $umbracoBackupPath
robocopy $configFolder $umbracoBackupPath /e /LOG:$copyLogsPath\ConfigBackup.log
}
# Copy umbraco and umbraco_files from package to project folder
# This is only done when these folders already exist because we
# only want to do this for upgrades
@@ -140,7 +149,10 @@ if ($project) {
}
$installFolder = Join-Path $projectDestinationPath "Install"
if(Test-Path $umbracoFolder) {
if(Test-Path $installFolder) {
Remove-Item $installFolder -Force -Recurse -Confirm:$false
}
# Open readme.txt file
$DTE.ItemOperations.OpenFile($toolsPath + '\Readme.txt')
}