I need to copy an am Umbraco site from my local instance to a staging environment but obviously do not want to re-create the entire site in the CMS on the new server. Can anyone tell me what the relevant folders are that need to be copied to the new instance (in addition to a database restore)? I am having a hard time identifying exactly what I am editing when I am using the CMS UI.
In short: backup local db, restore on staging server, copy all local files to remote staging environment, change web.config to point to new db and launch new site. If site doesn't show up immed, perform a 'Publish entire site' from right click on 'Content' node in content section.
Thanks so much for your speedy reply. This is my first Umbraco site, so please forgive me if my questions are silly. How do I know if I'm using Usercontrols?
Usercontrols are found inside a usercontrols folder in the root of the site. Some packages make use of usercontrols. For example - if you use the runway starter site, it makes use of a usercontrol for a contact form. That particular one usually shows up inside a folder called runway that is inside the usercontrols folder.
Sometimes if you write custom code, you would put that in a usercontrol and then create a macro that uses that control.
So perhaps if you see anything inside your /usercontrols folder, you can move that as well.
Just check if the usercontrol folder locally is empty, if so you are not using Usercontrols :) It's indeed also possible to copy all the folders. Just some extra time for the upload
I sent the entire package to the client's techm, along with a BAK file from which he can restore the database. He was able to successfully install Umbraco, and he restorede the database from my backup. However, he is unable to log in using the same credentials that I use for my local instance (I verified that they work).
Is this expected behavior? Is there anything else we need to do? Does anyone see any issues with this process?
Are you sure web.config both are the same (maybe not for the db connection string), but make sure membership's password format is identical on both systems.
Dirk you are right, the database user needs to have db_datareader, db_datawriter/,db_owner role membership in sql server, i.e. right click on the user, go to Membership, and give the user enough rights to read and write to the database. one way of checking if the user has rights, login to the database via Sql Server Management Studio using the user's credentials. If you can see the tables and data, then u are good to go.
Basic Umbraco Deployment Question
Hi,
I need to copy an am Umbraco site from my local instance to a staging environment but obviously do not want to re-create the entire site in the CMS on the new server. Can anyone tell me what the relevant folders are that need to be copied to the new instance (in addition to a database restore)? I am having a hard time identifying exactly what I am editing when I am using the CMS UI.
Thanks,
Garrett
Garrett,
Here's another thread that discusses similar situation: http://our.umbraco.org/forum/getting-started/installing-umbraco/3936-How-to-duplicate-an-Umbraco-installation
In short: backup local db, restore on staging server, copy all local files to remote staging environment, change web.config to point to new db and launch new site. If site doesn't show up immed, perform a 'Publish entire site' from right click on 'Content' node in content section.
Cheers,
/Dirk
Hi Garret,
If the Version of Umbraco on your local machine and your staging env are the same, I would say copy the folders :
- Css
- MasterPages
- Media
- Scripts
- XSLT
If you are using Usercontrols also copy the usercontrols folder and the bin folder for your local dll
Then restore the database and make sure you republish the entire site by richt clicking on content -> Republish entire site in Umbraco.
Hope this helps,
Richard
Hi Richard--
Thanks so much for your speedy reply. This is my first Umbraco site, so please forgive me if my questions are silly. How do I know if I'm using Usercontrols?
Thanks again,
Garrett
Garrett-
Usercontrols are found inside a usercontrols folder in the root of the site. Some packages make use of usercontrols. For example - if you use the runway starter site, it makes use of a usercontrol for a contact form. That particular one usually shows up inside a folder called runway that is inside the usercontrols folder.
Sometimes if you write custom code, you would put that in a usercontrol and then create a macro that uses that control.
So perhaps if you see anything inside your /usercontrols folder, you can move that as well.
Garrett,
Unless you have a good reason not too you can just copy all the folders up to the staging environment.
As mentioned the web.config file needs to be unique to your staging server (the database connection string will more than likely be different)
Rich
Hi Garret,
Just check if the usercontrol folder locally is empty, if so you are not using Usercontrols :) It's indeed also possible to copy all the folders. Just some extra time for the upload
Cheers,
Richard
Guys,
I sent the entire package to the client's techm, along with a BAK file from which he can restore the database. He was able to successfully install Umbraco, and he restorede the database from my backup. However, he is unable to log in using the same credentials that I use for my local instance (I verified that they work).
Is this expected behavior? Is there anything else we need to do? Does anyone see any issues with this process?
Thanks and help!
//Garrett
Are you sure web.config both are the same (maybe not for the db connection string), but make sure membership's password format is identical on both systems.
Hope this helps.
Regards,
/Dirk
Dirk you are right, the database user needs to have db_datareader, db_datawriter/,db_owner role membership in sql server, i.e. right click on the user, go to Membership, and give the user enough rights to read and write to the database. one way of checking if the user has rights, login to the database via Sql Server Management Studio using the user's credentials. If you can see the tables and data, then u are good to go.
Regards,
Sawe
is working on a reply...