- Install IIS
- Download and install the Web Platform Installer (WPI)
- WPI: Install MVC4
- WPI: Install Management Service
- In the Services app, set the Web Management Service to start automatically but don't start it yet
- (Re)start the IIS Manager
- Select the server node and in the bottom part of the main pane will be an icon "Management Service". Double-click that
- Enable remote connections (setting up security as appropriate)
- Install Web Deploy 3.5 using the download, not the WebPI (if you did this earlier, you may have to change it in "Add/Remove Programs" to ensure that all features are enabled and restart IIS
- Create new website with an appropriate App Pool (.NET 4)
- In Visual Studio on the remote machine, publish the app using Web Deploy and validate the connection
- Accept the security certificate
- Re-register ASP.NET with c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
- Create a new MVC4 app in Visual Studio with Razor
- Publish!
Lovely - you should now be able to run you app. However... You will want these NuGet packages, which you can install from the Package Manager Console:
- Install-Package MvcHtml5Templates adds EditorTemplates for the new html5 input types including email, tel, and url
- Install-Package Bootstrap makes it work across all devices (I like http://getbootstrap.com/examples/sticky-footer-navbar/)
No comments:
Post a Comment