Process of dev/test on test servers and migrating to production.

I have been tasked with developing a plan to get out developers from testing and developing on our procuction boxes and testing/developing on our Test/Dev boxes.

My experience is only with small shops with 1 (myself) or 2 programmers, and we never needed a process to develope on Dev servers and promote to proction servers complete with gatekeepers.

Can anyone suggest some articles or provide some info on the subject that are better than just web-search ?

Thank You.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Easy approach, which I provide all my private hosting clients.

1) At host level, install only LXD + very little else.

2) For each site which requires a production site + staging site...

Create one production container + one dev container.



This allows both production + all dev sites to be wrapped in SSL.

I SSL wrap all sites, production + dev. SSL certs are free + dev sites running without SSL is a great way for people to steal your login info, so they can access your production site later.

3) Since IPs are local, to swap dev container to be production container + swap production container to be old container, so old site stays on line.

Edit /etc/network/interfaces on both containers + swap the IPs.

Then run /etc/init.d/networking restart on both containers + your IP has changed.

4) If you've coded your sites correctly (no hard coded protocols or site names for serving local assets), then you're done.

5) If you're running WordPress, I do one extra step, to replace any dev links which might have crept into site during development.

wp search-replace '' '' wp_options --precise --recurse-objects --dry-run

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
The main perk about this approach is there's not even any DNS lag when swapping an old dev to new production site.

Entire process takes <1min, even with the search + replace... well... if developers have coded their links correctly.
sidwelleAuthor Commented:
Thank you, lots of good info.
FYI, these are not web servers/sites.  I need some process of exporting the code from the dev/test servers and importing into the Prod environment.  Yes the environment does have export/import feature.

I am looking for move of a pseudo or process approach that I can write out.

Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Makes no difference what type of application runs inside containers.

LXD relates to any Linux type code.

Think of LXD as a way to slice up a physical machine into other physical machines.

If you're running Windoze, then you'd use something like VMware or VirtualBox instead.
sidwelleAuthor Commented:
This is a Mirth environment and the builds are the channels.  I need process to build the Channels in dev/test and promote them to prod.

Yes, we could set up variables for test/Prod and they would switch as the channels are promoted to the prod environment.

I need to present a process for doing this.
sidwelleAuthor Commented:
Thanks Dave,

Appreciate the help.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.