?
Solved

Managing code updates

Posted on 2014-03-04
8
Medium Priority
?
303 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
  • 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
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

 

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 41

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 41

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

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
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 Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Suggested Courses

862 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