usar varios web.config. Hay un web.config y dentro tiene versiones que se usan dependiendo de donde se esté. Dentro de web.config hay Web.Resease.config, remueve el atributo debug y setea atributos donde haya un Match.
<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<appSettings>
<add key="BlobContainer" value="restaurants" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
</appSettings>
<connectionStrings>
<add name="AbcRestaurantsEntities"
connectionString="data source=abc-mallorca.database.windows.net;initial catalog=AbcRestaurants;persist security info=True;user id=ZaphodBeeblebrox@abc-mallorca;password=iHAE5O37esyuchaX;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
</system.web>
</configuration>