Search

Categories

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Send mail to the author(s) E-mail

# Wednesday, February 15, 2012
( Azure | Orchard )

Installed using Web Platform Installer, which seems to have installed it using Web Matrix

After a stop, start it worked!

image

 

Technical Initial Thoughts:

  • [did it!]Get orchard deployed to a production server
  • Get a professional website together showcasing software development, infrastructure and hardware projects done in last x years

Where to host?  Need .NET4 and SQL Server (or SQL CE).  Azure – yes

ASP.NET MVC3

NHibernate – ORM

Autofac – IoC – Orchard makes heavy use of dependency injection.

Castle Dynamic Proxy -

Proxy objects can assist in building a flexible application architecture because it allows functionality to be transparently added to code without modifying it. For example, a class could be proxied to add logging or security checking without making the code aware this functionality has been added.

For example, NHibernate, an object/relational mapper uses DynamicProxy to provide lazy loading of data without the domain model classes being aware of this functionality.

a few questions per day on Stackoverflow. eg http://stackoverflow.com/questions/9225040/how-orchard-cms-does-the-logging

Pluralsight Video

Free video for intro.. then pay for the rest

http://localhost:65422/ – using webmatrix

TinyMCE editor

Pages and Widgets

image

when editing the welcome to orchard.. it is a page.  When editing the Third Leader Aside it is a Widget.  Thie is an HTML widget.. just like a page.

image

image

but dont want the bullets

Edit The Stylesheet

image

image

no bullets on ul!

image

Ordering of Main Menu and Adding Items

image

image

Building from Source / Mercurial

downloaded source (not clone the mercurial).  This didn’t work deploying to Azure

http://docs.orchardproject.net/Documentation/Deploying-Orchard-to-Windows-Azure

image

getting from codeplex via mercurial

image

Had to change Azure tools version 1.5 to 1.6 on \AzurePackage.proj and in other places (but next bits didn’t seem totally necessary): http://orchard.codeplex.com/discussions/278917

Put in my storage connection string (for BLOB’s) into the ServiceConfiguration.cscfg in the VS solution.

Run ClickToBuildAzurePackage.cmd

  <Setting name="DataConnectionString" value="DefaultEndpointsProtocol=https;AccountName=mateerstorage3;AccountKey=eYuIdHYAtX/jzkP5a67ev3ZUt1qSu0xxxxxxxxxxxxbosh419uEkJnn0Tu4jamgUiHJ1msW5K56wh7qmKVeYiVQ==" />

Upload to Azure using the manual uploader from Silverlight admin interface.

Connection string for the database

Data Source=zx6l3oinx1.database.windows.net;Initial Catalog=orcharddb;User ID=dave;Password=xxxx;Trusted_Connection=False;Encrypt=True;MultipleActiveResultSets=True

image

Downloaded Orchard.Azure Version from Codeplex

I actually did this first to make sure connection strings were right and to prove Orchard worked on Azure.  However did the above after so I could have full control and deploy to an extra small instance.

changed the dataconnectionstring to this:

<ConfigurationSettings>
      <Setting name="DataConnectionString" value="DefaultEndpointsProtocol=https;AccountName=mateerstorage3;AccountKey=thisisasecret==" />
      <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="UseDevelopmentStorage=true" />
    </ConfigurationSettings>

image

should be mateerstorage3'

put in this in the connection settings:

Server=tcp:zx6l3oinx1.database.windows.net,1433;Database=orcharddb;User ID=dave@zx6l3oinx1;Password=myPassword;Trusted_Connection=False;Encrypt=True;

image