?
Solved

Managing code updates

Posted on 2014-03-04
8
Medium Priority
?
297 Views
Last Modified: 2014-03-11
How do people managing updating multiple web sites when the code is updated?

I manage a couple of websites. They all use the same code. Right now to manage updating each site with new code I use Filezilla to FTP the new files and use the Filezilla switch to only copy the new file if the file date or size is different. I am finding this process quite onerous and I am guessing that there must be an easier way to manage this.

I have created a script that updates the database whenever its format has changed.

Thank you for any information on this that you can provide.
0
Comment
Question by:WestCoast_BC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 39903998
What, specifically, do you find onerous about your process?  

You might be able to create a default file structure locally, and use scripts/Robocopy/Filezilla to push local-copy changes to the remote copies, but at the end of the day, you're going to have to copy those files around.
0
 

Author Comment

by:WestCoast_BC
ID: 39904047
I was hoping that I could use some sort of install tool and create something that is automatic. I see sites that have automatic checking for new versions of their software. It is now clear to me how they do this.
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 39904056
So rather than push updates, you want the sites to be able to pull updates?
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:WestCoast_BC
ID: 39904060
Yes, I want the sites to be able to pull updates.
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 39904136
This seems do-able as well, depending on the language you're using server-side.  Just write some code to copy files from a pre-established server whenever a button is pushed or some other criteria is met.  Ostensibly this would be done via FTP, but your language of choice may allow copying files across the network as a native feature.
0
 
LVL 40

Expert Comment

by:Eoin OSullivan
ID: 39904280
There are LOTS of different ways of doing it depending on your OS, WebServer etc.

You can use version control tools like SVN, GIT etc. which allow you to track changes on your development system and run server-side commands to update your multiple websites to the latest build over ssh.  If you can run git or svn on your webserver using ssh then this is a great option.

You can use a sync type tool to scan your local copy and compare with the remote and only upload the difference - something like rsync .. which you can automate (easier than filezilla).  This requires ssh access but no server-side software or tools

Finally you could use something like diff ... where you keep a folder on your PC that is a copy of what is on your remote webservers .. and your new development copy ... if you run the diff command and compare the two it can generate a list of what needs to be copied from local to remote (better than having to scan/compare over FTP)
 diff --quiet --recurse -unidirectional-new-file OLDDIR NEWDIR | \
  sed "s/^.* and \(.*\) differ/\1/"

Open in new window

0
 

Author Comment

by:WestCoast_BC
ID: 39904747
Thank you for all of your help.  My sites are hosted on an shared Apache server running Coldfusion. It is hosted by Hostek.
0
 
LVL 40

Accepted Solution

by:
Eoin OSullivan earned 2000 total points
ID: 39904758
Check with Hostek to see if they offer SSH access and if they offer any version control systems such as git or svn?  It is rare for web hosting to have VCS support but SSH is more common
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: gr8gonzo
Git can be a complicated version control system for beginners, but it definitely is one of the best ones out there. Since this article assumes that you're starting at square one, it will skip over things that Git -can- do and will focus on the typic…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question