Skip to content

Instantly share code, notes, and snippets.

@stevensk
Last active August 29, 2015 14:08
Show Gist options
  • Save stevensk/428c678bfee93d5ce31a to your computer and use it in GitHub Desktop.
Save stevensk/428c678bfee93d5ce31a to your computer and use it in GitHub Desktop.
Kudu script section for running DbUp on Azure website continuous deployment
:: 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