Upgrading Many Sites With Ease

Discussion in 'Managing Your Online Community' started by BamaStangGuy, Jul 30, 2013.

  1. BamaStangGuy

    BamaStangGuy Administrator

    Joined:
    Jun 23, 2009
    Messages:
    769
    Likes Received:
    549
    Location:
    Huntsville, AL
    xenForo has a lot of files and it takes forever to upload via FTP. If you have SSH access you can upload the zip to your server, unzip it and then cp over the old files. To give you an example:

    Your xenForo path is:

    /home/site/www/

    Upload the zip to your folder and unzip it. The command is simply unzip.

    Once unzipped, go to your upload folder: cd upload

    Once in the upload folder type the following command:

    \cp -R * /home/site/www/

    It is important to use the \ before cp on at least Centos servers. Not sure about others. This should take about 2 seconds to run and then you just open up your site and upgrade.
     
    Brandon likes this.
  2. ragtek

    ragtek Regular Member

    Joined:
    Dec 25, 2009
    Messages:
    238
    Likes Received:
    134
    or much easier:

    create a privat git repository with the software of your choise (e.g. xenforo) and keep it up2date


    use git or composer to get the new builds on your server
    if the software supports it (e.g. xenforo has an cli upgrader) use the git hook or composer script ( http://getcomposer.org/doc/articles/scripts.md ) to start the upgrade automatically:)
     
  3. BamaStangGuy

    BamaStangGuy Administrator

    Joined:
    Jun 23, 2009
    Messages:
    769
    Likes Received:
    549
    Location:
    Huntsville, AL
    I'm not sure that is easier but thanks for suggesting it :)
     
  4. ragtek

    ragtek Regular Member

    Joined:
    Dec 25, 2009
    Messages:
    238
    Likes Received:
    134
    why?

    once you've set it up, you just need to call on on your server

    Code:
    php composer.phar update
    
    
    and i'm getting the newest stabile symfony and xf version installed




    on my test stages , i don't even need to do anything.
    they'll get automatic the new xf versions, once i push the new xf versions to my privat bitbucket repo

    (personally, i don't like to do this on LIVE sites, but for test stages it's fine^^
    to get a idea what i mean => http://sebduggan.com/blog/deploy-your-website-changes-using-git/ )
     
    Last edited: Jul 31, 2013
  5. BamaStangGuy

    BamaStangGuy Administrator

    Joined:
    Jun 23, 2009
    Messages:
    769
    Likes Received:
    549
    Location:
    Huntsville, AL
    upload zip
    unzip
    cd upload
    \cp -R * /home/site/www/

    Plus you state you don't like to do this on live sites. Kind of defeats the purpose then doesn't it?
     
Similar Threads
Loading...

Share This Page