#348 new

local and production host swapping

Reported by ramonrails | December 24th, 2009 @ 04:38 PM

While I am using adva_cms for hosting some of my client sites, I wanted to share this code with the community if anyone gets a benefit from this.

What was required? (What did I do)

I had to swap between local and production host url everytime I was deploying using capistrano.
So I made some changes to include an "alias" text field for each site.

What I did not do. (Bad for me and project)
Testing. I just updated a few test scripts to fetch data appropriately but never went through the detailed testing to make sure things are ok. (maybe a little less time available from projects for adva_cms)

Benefits of this
1. Now I can keep the local url in host (my_local_test_site.local) and production url in alias (production_site1.com, production_site2.com, ...). Saves me some effort of switching the host url before deploy. Of course the binary sqlite3 file also does not need update in git.
2. I can also point 2 different domains to the same data set in adva_cms. (I am not sure if that is bad practice, but my client needed it.)

Let me know. I will be happy to fix those to the extent possible.

Source available at http://www.github.com/ramonrails/adva_cms
All feedback is welcome.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<p>Cutting edge cms, blog, wiki, forum ... plattform.</p>

<p>Find the code on <a href="http://github.com/svenfuchs/adva_cms/tree/master">GitHub: adva cms</a></p>

<p>Part of the business application framework <a href="http://www.advabest.org/">adva best</a>.</p>

People watching this ticket