Last active
August 29, 2015 14:08
-
-
Save stevensk/428c678bfee93d5ce31a to your computer and use it in GitHub Desktop.
Kudu script section for running DbUp on Azure website continuous deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 2. DbUp Database Migrations | |
echo Handling Data Migrations. | |
%MSBUILD_PATH% HelloWorld.DbUp\HelloWorld.DbUp.csproj | |
IF !ERRORLEVEL! NEQ 0 goto error | |
echo Running DbUp. | |
:: call DbUp with the named connection string for the SQL Azure database i.e. "%SQLAZURECONNSTR_connection_string_name%" | |
call %DEPLOYMENT_SOURCE%\HelloWorld.DbUp\bin\debug\HelloWorld.DbUp.exe "%SQLAZURECONNSTR_HelloWorld_db%" | |
IF !ERRORLEVEL! NEQ 0 goto error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment