Just discovered how to utilise RSYNC to eliminate FileZilla |
03-22-2019, 07:16 AM
(This post was last modified: 03-22-2019, 07:28 AM by John_Betong. Edit Reason: formatting problems )
Just discovered how to utilise RSYNC to eliminate FileZilla
For years I have laboriously written code on my Localhost then used FileZilla to update the relevant Server files. Although FileZilla is very good it does take quite a few clicks to synchonise all the updated files so... eventually got round to trying RSYNC. Updating changes now only takes a couple of seconds!!! FileZilla is never used!!! The web-page update links and function can be used on any CodeIgniter installation. The following prerequisites does take a bit of trial and error to install but the effort is well rewarded. Prerequisites: 1. install RSYNC 2. install Linux SSH 3. Localhost mirror image of the Server files 4. Upload links on home page banner/footer (only on Localhost web-pages) Test for the following GET parameter links: 1. https://my-ci-website.com/web-page?rsync=app 2. https://my-ci-website.com/web-page?rsync=wri 3. https://my-ci-website.com/web-page?rsync=ass The main controller tests for above links and if true calls the following function: PHP Code: // Controller Web_page
I’ve used rsync for other stuff. For this I’d probably use git. Have you tried git?
For small projects rsync and ftp is not a problem.
My way (basic): - Git for version control - Creating a build from the master or an other branch - upload the build to the server - set symlinks to the new build |
Welcome Guest, Not a member yet? Register Sign In |