Publish changes to production

Vote:
 

Hi all,

I am currently making some changes to an EPi site in VS 2010. I have made the changes and would now like to publish them on our production site.

I am using the "Publish Web" file system method, which is copying the files needed to run the site.

My question is, if I make changes to page types, how can I publish these changes, (correct me if I am wrong) but as I understand that they are stored in the DB rather than a file?

 

#60162
Jul 23, 2012 11:48
Vote:
 

Correct. You can either make the changes manually in the admin site's admin mode or you can create an export package with the relevant page types and import it on the production site. Wether you do this before or after you deploy the code changes depends on the nature of the changes

- If the code function without the page type changes -> deploy the code first

- If the old code will function with the page type changes -> deploy them first

- If neither of the above is true, it doesn't really matter what you deploy first :(

 

Many use Page Type Builder to handle these scenarios.

#60163
Jul 23, 2012 13:05
Vote:
 

Hi Joel,

Thank you for your reply! That makes sense to me.

If previous page types have been created in pagetype builder, can I still use the above method?

How would I create an export package in VS 2010 for the page types?

#60167
Jul 23, 2012 14:01
Vote:
 

Hi,

You create export packages, and import them, in EPiServer's admin mode.

I'm not sure I understand your question regarding Page Type Builder :(

#60168
Jul 23, 2012 14:08
Vote:
 

@James PTB page types are just regular classes in your project with special attributes. You can look at them as data models. So you deploy them with the rest of your code, when the application starts up PTB will synchronize the changes and update the page types in the DB.

Frederik

#60172
Jul 23, 2012 16:58
Vote:
 

Hi,

what about code behind how will this be imported to the site? I have created a deploy package from VS and have gone to IIS7 and clicked the dev instance and selected deploy import application.

Is this correct, or should I be deploying the changes in a different way? The dev instance has different web.config and connection.strings to the production instance, so I don't want these to be overwritten.

#60312
Aug 03, 2012 15:35
Vote:
 

Can anyone help with this?

#60352
Aug 06, 2012 16:59
Vote:
 

Are you using web site or web application project type?

#60353
Aug 06, 2012 17:00
Vote:
 

It is a web application project type.

#60360
Aug 07, 2012 9:02
Vote:
 

In that case you need to deploy the dll file for your project along with the .aspx, .ascx etc files. The dll file contains all your code compiled into one file.

Frederik

#60361
Aug 07, 2012 9:49
Vote:
 

ok great, so I can just complie locally in the development environment then copy the new pages and the dll to the production server?

#60362
Aug 07, 2012 10:24
Vote:
 

Yes, along with all the other dll files including PageTypeBuilder.

Frederik

#60363
Aug 07, 2012 10:27
Vote:
 

perfect, thanks. I will give that a go when I have the pages ready.

Do I not have to create a deploy package if the site is already up and running? I only need to copy the new and changed files?

Thanks again for your help!

#60364
Aug 07, 2012 10:55
Vote:
 

Correct, you only need to deploy the files that are different (remember that this can be a dll file).

Frederik

#60367
Aug 07, 2012 11:06
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.