* fixed compilation error in Flags.aspx on mono
* modified debug/release config transformers
This commit is contained in:
parent
1fde4e819a
commit
bf16553b76
@ -1,4 +1,4 @@
|
|||||||
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<VideoGameQuotes.Api.Quote>>" MasterPageFile="~/Views/Shared/Site.Master" %>
|
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<System.Collections.Generic.IEnumerable<VideoGameQuotes.Api.Quote>>" MasterPageFile="~/Views/Shared/Site.Master" %>
|
||||||
<asp:Content runat="server" ID="Title" ContentPlaceHolderID="TitleContent">Quote Flags</asp:Content>
|
<asp:Content runat="server" ID="Title" ContentPlaceHolderID="TitleContent">Quote Flags</asp:Content>
|
||||||
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">
|
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">
|
||||||
<h2>Flagged Quotes</h2>
|
<h2>Flagged Quotes</h2>
|
||||||
|
@ -3,28 +3,4 @@
|
|||||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
<!-- 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">
|
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||||
<!--
|
|
||||||
In the example below, the "SetAttributes" transform will change the value of
|
|
||||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
|
||||||
finds an atrribute "name" that has a value of "MyDB".
|
|
||||||
|
|
||||||
<connectionStrings>
|
|
||||||
<add name="MyDB"
|
|
||||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
|
||||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
|
||||||
</connectionStrings>
|
|
||||||
-->
|
|
||||||
<system.web>
|
|
||||||
<!--
|
|
||||||
In the example below, the "Replace" transform will replace the entire
|
|
||||||
<customErrors> section of your web.config file.
|
|
||||||
Note that because there is only one customErrors section under the
|
|
||||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
|
||||||
|
|
||||||
<customErrors defaultRedirect="GenericError.htm"
|
|
||||||
mode="RemoteOnly" xdt:Transform="Replace">
|
|
||||||
<error statusCode="500" redirect="InternalError.htm"/>
|
|
||||||
</customErrors>
|
|
||||||
-->
|
|
||||||
</system.web>
|
|
||||||
</configuration>
|
</configuration>
|
@ -3,29 +3,26 @@
|
|||||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
<!-- 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">
|
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||||
<!--
|
<system.web>
|
||||||
In the example below, the "SetAttributes" transform will change the value of
|
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
</system.web>
|
||||||
finds an atrribute "name" that has a value of "MyDB".
|
|
||||||
|
<vgquotes>
|
||||||
<connectionStrings>
|
<add xdt:Locator="Match(key)" xdt:Transform="Replace" key="luceneIndexDirectory" value="/var/www/sites/vgquotes.com/lucene_index"/>
|
||||||
<add name="MyDB"
|
</vgquotes>
|
||||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
|
||||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
<log4net>
|
||||||
</connectionStrings>
|
<appender name="RollingFileAppender">
|
||||||
-->
|
<file value="/var/log/nginx/vgquotes.com.log" xdt:Transform="SetAttributes(value)"/>
|
||||||
<system.web>
|
</appender>
|
||||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
|
||||||
<!--
|
<appender name="TelnetAppender" xdt:Locator="Match(name)" xdt:Transform="Remove"/>
|
||||||
In the example below, the "Replace" transform will replace the entire
|
|
||||||
<customErrors> section of your web.config file.
|
<logger name="vgquotes" xdt:Locator="Match(name)" xdt:Transform="Replace">
|
||||||
Note that because there is only one customErrors section under the
|
<level value="INFO"/>
|
||||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
<appender-ref ref="RollingFileAppender" />
|
||||||
|
</logger>
|
||||||
<customErrors defaultRedirect="GenericError.htm"
|
|
||||||
mode="RemoteOnly" xdt:Transform="Replace">
|
<logger name="NHibernate.SQL" xdt:Locator="Match(name)" xdt:Transform="Remove"/>
|
||||||
<error statusCode="500" redirect="InternalError.htm"/>
|
</log4net>
|
||||||
</customErrors>
|
|
||||||
-->
|
|
||||||
</system.web>
|
|
||||||
</configuration>
|
</configuration>
|
@ -24,12 +24,6 @@
|
|||||||
</vgquotes>
|
</vgquotes>
|
||||||
|
|
||||||
<log4net>
|
<log4net>
|
||||||
<appender name="DebugAppender" type="log4net.Appender.DebugAppender">
|
|
||||||
<layout type="log4net.Layout.PatternLayout">
|
|
||||||
<conversionPattern value="[%-5level] %message%newline" />
|
|
||||||
</layout>
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<appender name="TelnetAppender" type="log4net.Appender.TelnetAppender">
|
<appender name="TelnetAppender" type="log4net.Appender.TelnetAppender">
|
||||||
<port value="23" />
|
<port value="23" />
|
||||||
<layout type="log4net.Layout.PatternLayout">
|
<layout type="log4net.Layout.PatternLayout">
|
||||||
@ -37,15 +31,25 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
|
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
|
||||||
|
<file value="c:\users\tmont\code\VideoGameQuotes\vgquotes.log" />
|
||||||
|
<appendToFile value="true" />
|
||||||
|
<rollingStyle value="Size" />
|
||||||
|
<maxSizeRollBackups value="10" />
|
||||||
|
<maximumFileSize value="100KB" />
|
||||||
|
<staticLogFileName value="true" />
|
||||||
|
<layout type="log4net.Layout.PatternLayout">
|
||||||
|
<conversionPattern value="%date [%-5level] %message%newline" />
|
||||||
|
</layout>
|
||||||
|
</appender>
|
||||||
|
|
||||||
<logger name="vgquotes">
|
<logger name="vgquotes">
|
||||||
<level value="ALL"/>
|
<level value="ALL"/>
|
||||||
<!--<appender-ref ref="DebugAppender" />-->
|
|
||||||
<appender-ref ref="TelnetAppender" />
|
<appender-ref ref="TelnetAppender" />
|
||||||
</logger>
|
</logger>
|
||||||
|
|
||||||
<logger name="NHibernate.SQL">
|
<logger name="NHibernate.SQL">
|
||||||
<level value="ALL"/>
|
<level value="ALL"/>
|
||||||
<!--<appender-ref ref="DebugAppender" />-->
|
|
||||||
<appender-ref ref="TelnetAppender" />
|
<appender-ref ref="TelnetAppender" />
|
||||||
</logger>
|
</logger>
|
||||||
</log4net>
|
</log4net>
|
||||||
|
Loading…
Reference in New Issue
Block a user