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
def deploy_to_cloud | |
exec "cspack #{CSDEF} /role:WorkerRole1;#{WORKER_ROLE_DIR};#{WORKER_ROLE_DLL} /role:WebRole1;#{WEB_ROLE_DIR} /sites:WebRole1; Web;c:\web /out:#{CSPKG_FILE}" | |
exec "#{PACKAGE_UPLOADER_EXE} #{CSPKG_FILE} #{ACCOUNT_CONNECTION_STRING}" | |
exec "#{SUSPEND_COMMAND}" | |
exec "#{DELETE_COMMAND}" | |
exec "#{CREATE_COMMAND}" | |
exec "#{RUN_COMMAND}" | |
end |
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
# Top-level directories | |
SOURCE_DIR = ".." | |
PROJECT_NAME = "Demo" | |
# Local build and test | |
AZURE_SLN = "#{SOURCE_DIR}/#{PROJECT_NAME}.sln" | |
OUT_DIR = "bin/Debug/" | |
PUBLISH_LOCATION = "#{OUT_DIR}Publish/" | |
CSDEF = "ServiceDefinition.csdef" | |
CSCFG = "ServiceConfiguration.cscfg" |
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
<Target Name="LocalDeploy" DependsOnTargets="CorePackageComputeService" Condition=" '$(DeployType)' == 'Local' "> | |
<Exec Command="$(StopLocalDevFabric)"/> | |
<Exec Command="$(RunLocalDevFabric)" /> | |
</Target> |
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
<Target Name="CloudDeploy" DependsOnTargets="CorePublish" Condition=" '$(DeployType)' == 'Cloud' "> | |
<Exec Command="$(PackageUploader) $(cspkgFile) $(AccountConnectionString)"/> | |
<Exec Command="$(SuspendCommand)" ContinueOnError="true"/> | |
<Exec Command="$(DeleteCommand)" ContinueOnError="true"/> | |
<Exec Command="$(CreateCommand)" ContinueOnError="true"/> | |
<Exec Command="$(RunCommand)" ContinueOnError="true"/> | |
</Target> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<CloudExtensionsDir Condition=" '$(CloudExtensionsDir)' == '' "> | |
C:\Program Files (x86)\MSBuild\Microsoft\Cloud Service\1.0\Visual Studio 10.0\ | |
</CloudExtensionsDir> | |
</PropertyGroup> | |
<Import Project="$(CloudExtensionsDir)Microsoft.CloudService.targets" /> | |
<PropertyGroup> | |
<AccountConnectionString>...</AccountConnectionString> |
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
<Target Name="CloudDeploy" DependsOnTargets="CorePublish" Condition=" '$(DeployType)' == 'Cloud' "> | |
... | |
</Target> | |
<Target Name="LocalDeploy" DependsOnTargets="CorePackageComputeService" Condition=" '$(DeployType)' == 'Local' "> | |
... | |
</Target> |
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
<PropertyGroup> | |
<CloudExtensionsDir Condition=" '$(CloudExtensionsDir)' == '' "> | |
C:\Program Files (x86)\MSBuild\Microsoft\Cloud Service\ | |
1.0\Visual Studio 10.0\ | |
</CloudExtensionsDir> | |
</PropertyGroup> | |
<Import | |
Project="$(CloudExtensionsDir)Microsoft.CloudService.targets" /> |
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
cspack #{CSDEF} | |
/role:WorkerRole1;#{WORKER_ROLE_DIR};#{WORKER_ROLE_DLL} | |
/role:WebRole1;#{WEB_ROLE_DIR} | |
/sites:WebRole1; Web;c:\web | |
/out:#{CSPKG_FILE} |
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
cspack ServiceDefinition.csdef | |
/out:Azure.cspkg | |
/role:MvcTestAzure;MvcTestAzure | |
/sites:MvcTestAzure;Web;MvcTestAzure | |
/generateConfigurationFile:ServiceConfiguration.cscfg | |
/rolePropertiesFile:MvcTestAzure;Props.txt |
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
csrun /run:Azure.csx;ServiceConfiguration.cscfg | |
/devfabric /launchBrowser |