Forum


HomeHomePremiumPremiumDevelopmentDevelopmentBeginning local development.....Beginning local development.....
Previous
 
Next
New Post
10/15/2014 11:51 AM
 

I think I've got it; thanks!

 
New Post
10/16/2014 5:59 AM
 

Here are a few of the things I do for local development.

First off I have local DNS either in my local DNS server (harder) or in my host file. In either case it does NOT match production, but I have both in the host alias. For example I have www.twincitytc.org (public) and twincitytc.home.crewstone.com (local). That allows me to move a backup of the site  (along with the DB) to my local  machine(s) and run it pretty much as is.

I will take a template of the production site (not a backup) and change that to a template embedded in an install ZIP for the version of DNN I'm using. You'll need to have all the same skins, module installs, etc, in that same ZIP. Then you unzip that to a fresh directory and you have a brand new site once you run through the installation. The advantage of doing this is you can take the local install, and repeat the process going back to production. The disadvantage is this doesn't work for modules that don't support import/export. The big advantage is if you have older sites that have been upgraded several times this is a great way to create a "clean" install, but you will need a separate process to refresh the registered users.

Now the other thing that's important to do is PRACTICE. Once your site reaches a certain side moving the whole thing back and forth is impractical. To have a  copy that looks  like production, make your changes, test them local, them REPEAT that process in production. For example I'll have modules I'll develop locally, test them locally, then I create an module installer and test it on a COPY of production, then I install it on production. May sounds like a lot of work, but it you're working on multiple sites  you will need a process to validate, and to document what you changed (and back it out if it doesn't work).

 

 
New Post
10/17/2014 9:05 AM
 

Thanks Keith for the helpful addition to my somewhat feeble brain cells. For others that may run across these posts: I set up a local development environment called dnn.me per Chris Hammond's videos. I then watched Aderson's excellent video he linked above. I struggled for a bit as to why for the dnn.dev site I did not have to edit the host name file as Aderson instructs. I believe the answer is that Joe Brinkman registered dnn.dev and registered http://dnndev.me and pointed it (and subdomains) to 127.0.0.1 (local ip)! 

So for those of you that have set up dnndev.me as a local site don't need to edit the host file, but for other sites (I believe) you do. If this is incorrect or the reason the two environments working differently is incorrect, I'd look forward to correction/clarification.  

Thanks again Aderson for the video; my baby steps will hopefully have me walking soon, even if I fall often!

 
New Post
10/17/2014 9:17 AM
 

Hi Mike,

Thank you for the nice words.

You got it! Your rationale is very right.

Keep walking!

Cheers,

Aderson

 
New Post
10/22/2014 9:32 AM
 

Hi Aderson,

So.....next (related) question. As you suggested earlier in this thread I set up my local site with just a slightly different name: LiveArts360Dev.com'. This now set up in both IIS and the host alias in DNN with that name. But I now find that the skin I want to use (Mandeeps Porto) licenses local use by identifying the host alias: "You can also use the skin without activating it as it will never expire on your localhost with a portal alias that begins with http://localhost". 

I added a host alias in DNN and a attempted to add new application in IIS pointing to the same physical path as 'LiveArts360Dev.com' as shown in this video of yours https://www.youtube.com/watch?v=tCPvq8GA2kM. But IIS will not let me enter 'localhost/LiveArts360Dev.com'. 

Any advice as how to overcome this issue? 

I appreciate your patience!

Mike

 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentBeginning local development.....Beginning local development.....



Try FREE
30 days money back guaranteed