1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Configured remote deployment, changed framework to 4.5.2 to work on IIS.

This commit is contained in:
Uncled1023 2015-07-16 21:06:27 -07:00
parent e062aaea86
commit 356a9d1ee2
4 changed files with 52 additions and 75 deletions

View File

@ -19,8 +19,6 @@ namespace Teknik
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
Database.SetInitializer(new SampleData());
}
}
}

View File

@ -1,31 +0,0 @@
using System;
using System.Collections.Generic;
using System.Data.Entity;
namespace Teknik.Models
{
public class SampleData : DropCreateDatabaseIfModelChanges<TeknikEntities>
{
protected override void Seed(TeknikEntities context)
{
var user = new User
{
Username = "Uncled1023",
JoinDate = DateTime.Now,
LastSeen = DateTime.Now
};
context.Users.Add(user);
var posts = new List<Post>
{
new Post { Article = "Test Post", DatePosted = DateTime.Now, DatePublished = DateTime.Now, Title = "Test Post", Published = false}
};
posts.ForEach(post => context.Posts.Add(post));
new List<Blog>
{
new Blog {Posts = posts, User = user}
}.ForEach(blog => context.Blogs.Add(blog));
}
}
}

View File

@ -13,7 +13,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Teknik</RootNamespace>
<AssemblyName>Teknik</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<MvcBuildViews>false</MvcBuildViews>
<UseIISExpress>true</UseIISExpress>
<IISExpressSSLPort>44300</IISExpressSSLPort>
@ -21,6 +21,7 @@
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile />
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -59,16 +60,14 @@
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" />
<Reference Include="System.Web.ApplicationServices" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Abstractions" />
<Reference Include="System.Web.Routing" />
<Reference Include="System.Xml" />
@ -114,6 +113,7 @@
<Private>True</Private>
<HintPath>..\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll</HintPath>
</Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="WebGrease, Version=1.6.5135.21930, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\WebGrease.1.6.0\lib\WebGrease.dll</HintPath>
<Private>True</Private>
@ -174,7 +174,6 @@
</Compile>
<Compile Include="Helpers\Crypto.cs" />
<Compile Include="Models\Post.cs" />
<Compile Include="Models\SampleData.cs" />
<Compile Include="Models\TeknikEntities.cs" />
<Compile Include="Models\User.cs" />
<Compile Include="Models\Blog.cs" />
@ -214,6 +213,7 @@
<Content Include="Content\fonts\fontawesome-webfont.eot" />
<Content Include="Content\fonts\FontAwesome.otf" />
<Content Include="ConnectionStrings.config" />
<None Include="Properties\PublishProfiles\IIS.pubxml" />
<None Include="Scripts\jquery-2.1.4.intellisense.js" />
<Content Include="Scripts\common.js" />
<Content Include="Scripts\jquery-2.1.4.js" />

View File

@ -1,13 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=301880
-->
<configuration>
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --><!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
</configSections>
<connectionStrings configSource="ConnectionStrings.config"/>
<!-- Create ConnectionStrings.config and add your connection string-->
<appSettings>
@ -16,10 +17,19 @@
<add key="ClientValidationEnabled" value="true"/>
<add key="UnobtrusiveJavaScriptEnabled" value="true"/>
</appSettings>
<!--
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
The following attributes can be set on the <httpRuntime> tag.
<system.Web>
<httpRuntime targetFramework="4.5.2" />
</system.Web>
-->
<system.web>
<customErrors mode="Off"/>
<authentication mode="Forms"/>
<compilation debug="true" targetFramework="4.6" />
<httpRuntime targetFramework="4.6" />
<compilation debug="true" targetFramework="4.5.2"/>
<httpRuntime targetFramework="4.5.2"/>
</system.web>
<system.webServer>
<modules>