my6solutions

asp .net, the social web & other distractions

 

Running Apps

Disclaimer

I am in no way affiliated with Microsoft or Google. I am just another developer trying to make a difference. All opinions and observations are usually my own.

Installing raya and pesta to support Windows Azure Table Storage and blobs

Prerequisites

  • ASP .NET 3.5
  • ASP .NET MVC, http://go.microsoft.com/fwlink/?LinkID=140768&clcid=0x409
  • Your favourite versioning tool, eg. Tortoise SVN, http://tortoisesvn.tigris.org/
  • Access to MS SQL database or SQL database express
  • Windows Azure SDK (if you want to run on Windows Azure)

 

You then need to create a folder on your drive somewhere containing the folders

  • pesta
  • raya

 

Next, check-out the code for each folder at the locations specified below

  • pesta, http://pesta.googlecode.com/svn/trunk/pesta/
  • raya, http://raya.svn.codeplex.com/svn/

 

Installing the SQL database
You either use SQL Server Management Studio or from the command line via sqlcmd to create the database. Under the raya project, there is a file called raya.sql. This is the database script. You will first need to create a database called raya. Once this is done, simply execute the script (raya.sql) from raya.

 

pestaServer web.config
There are only 3 things you need to do here

  1. Point the connection string to the database you've created
  2. Specify the address for containerUrlPrefix. This is the address of the "raya project" when it starts up. You can update the dynamic port numbers later.
  3. Either specify the tokenMasterKey so that communication between the site and gadget server includes a security token OR set allowUnauthenticated to true to bare it all

 

raya web.config
In the web.config file, you will need to

  1. Point the connectionString to the database you created above
  2. If you had specify the tokenMasterKey for pesta, you will need to specify the same value here
  3. Specify the address of the gadget_server, ie. the address that pesta is running on

 

Windows Azure

There are two CloudServices projects that are included in the solution

  1. CloudServiceDeployAll
  2. CloudServiceLocal

 

CloudServiceLocal

This project is used for local development. You will need to create the local test storage tables by right-clicking on the project name and selecting "Create Test Storage Tables"

 

CloudServiceDeployAll

This project is used for publishing the project on to the cloud. pestaServer will run on port 8000 and raya on port 80. You will need to edit ServiceConfiguration.cscfg and enter your accountname and sharedkey value.

To deploy to the cloud, you just need to right click on the project name and select Publish....

---

An article about my experience adding support for Windows Azure will be next.

 

 

Bookmark and Share

Categories: Pesta | Windows Azure
Permalink | Comments (1) | Post RSSRSS comment feed

Comments

Ing

Sunday, September 27, 2009 8:18 AM

Ing

Cool website!! Thanks for info!!!