Solved

Managing code updates

Posted on 2014-03-04
8
281 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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 39

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 39

Accepted Solution

by:
Eoin OSullivan earned 500 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
My mouse pointer arrow is malfunctioning 5 60
Joomla Website Malfunction 9 115
reasons why a "inside Menu" would not appear for a web server 6 62
Firebug on Firefox 50 2 128
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now