Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Easy way to run a Test and a Live site?Easy way to run a Test and a Live site?
Previous
 
Next
New Post
12/13/2007 4:06 PM
 

Hi All,

I'm a DNN newbie, so I appreciate your help.  I am building a site for a client who wishes to have a test site, and a live site.  This way we can try out changes, upgrades etc to see how it will affect DNN before we make changes to our main site.

I am hosting on Go Daddy, and have two different SQL Servers running, and two different directories containing fresh installs of DNN. 

Is there a way that I can copy and paste certain folders from the test directory into the live directory so that the content will transfer over without having to start from scratch? I would just try to copy and paste the entire test directory, but I thought there would be some differences in the config file(s) since they are running on two different SQL Servers.

Thanks!

 

 
New Post
12/13/2007 5:00 PM
 

Craig:

I'm afraid that what you are thinking is not that easy.  Remember that DNN is based on modules that are dynamically invoked on page load, and most importantly, the actual content of these modules is stored in the database.  Therefore, all you have in the DNN directories is the framework itself, not content.  Also, if you are thinking about copying the data from one table in test to the equivalent table in prod, it is not that easy either.  The content of each module is stored based on module ID and this has many ramifications.

Now, once you finish all your testing in the test version of the site, you could copy the whole SQL server database to the prod server.  This has been documented in this forum.

Something I do for testing with clients is to setup pages (tabs) that are controlled by group membership and only certain people can see them.  This may help you.

Carlos

 

 
New Post
12/13/2007 7:11 PM
 

Thanks Carlos.

So in the case of copying the entire SQL Server, would I also need to copy some files in the FTP?

Thanks,

-Craig

 
New Post
12/14/2007 1:43 AM
 

Safe way out would be packaging your changed modules in a zipped file which would include *.dnn file , ascx files ,and sql scripts too and then installing them on the live site , once they are tested on test site. Read more about packaging/installing module  .... its too detailed a topic to discuss here, you can read about it on net or  in wrox publication book on dotnet nuke.


Cheers
 
New Post
12/14/2007 10:11 AM
 

Craig:

You need to visualize how DNN is storing the site you are building.  All content and settings go to the database, the DNN physical directory not only includes the framework executable code, but also the skin definitions, graphics, and the code for the modules you may have added (core modules or third party).  So, if you install a module in testing and start building with it, before you transfer the SQL database to prod, you also need to make sure that the DNN directories are identical.  Be careful however with the Web.config file, at least the database connection strings will be different.  Another thing that will probably be different and drive you crazy if you forget about it is the Portal Alias.  To avoid problems with this I just add the production alias to the test database, even if you don't use it.

Now, bear in mind that moving the test SQL database to prod obviously overwrites the whole prod database.  This technique will probably help you for initial deployment but you should be carefull if you need to do it after prod is actually in production.  From that point on, hopefully your environment is more stable and you would not have the need for major changes (I did say hopefully).  It is at this point that I use pages with controlled access for testing on the production site.

Carlos

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Easy way to run a Test and a Live site?Easy way to run a Test and a Live site?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out