Just discovered how to utilise RSYNC to eliminate FileZilla - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12) +--- Thread: Just discovered how to utilise RSYNC to eliminate FileZilla (/showthread.php?tid=73137) |
Just discovered how to utilise RSYNC to eliminate FileZilla - John_Betong - 03-22-2019 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 RE: Just discovered how to utilise RSYNC to eliminate FileZilla - skunkbad - 03-22-2019 I’ve used rsync for other stuff. For this I’d probably use git. Have you tried git? RE: Just discovered how to utilise RSYNC to eliminate FileZilla - John_Betong - 03-22-2019 (03-22-2019, 07:02 PM)skunkbad Wrote: I’ve used rsync for other stuff. For this I’d probably use git. Have you tried git? Yes I have used Git and it is very useful for version control. The way I use RSYNC is to develop locally and update latest changes to the Server: RE: Just discovered how to utilise RSYNC to eliminate FileZilla - Paradinight - 03-23-2019 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 |