Discover Centmin Mod today
Register Now

Install Wordpress Staging Centminmod

Discussion in 'Add Ons' started by brijendrasial, Jul 30, 2021.

  1. brijendrasial

    brijendrasial Active Member

    208
    154
    43
    Mar 21, 2018
    Ratings:
    +236
    Local Time:
    12:52 PM
    1.13.9
    10.0.22-MariaDB
    Hello,

    Wrote a small script to create WordPress staging enviroment in centminmod (GitHub - Brijendrasial/CentMinMod_Wordpress_Staging)
    It creates production WordPress to staging WordPress. I still have to complete staging to production environment and will try to complete it soon.

    Usage:
    Code:
    sh staging-wordpress-cmm.sh --staging production_domain staging_domain staging_mysql_db_name staging_mysql_db_user staging_mysql_db_pass


     
  2. brijendrasial

    brijendrasial Active Member

    208
    154
    43
    Mar 21, 2018
    Ratings:
    +236
    Local Time:
    12:52 PM
    1.13.9
    10.0.22-MariaDB
    Production to staging added
    Code:
    sh staging-wordpress-cmm.sh --production production_domain staging_domain
     
  3. eva2000

    eva2000 Administrator Staff Member

    55,155
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    5:22 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    wow @brijendrasial thanks for sharing! Always great to see what ideas/tools Centmin Mod users build to make things better :D (y)
     
  4. brijendrasial

    brijendrasial Active Member

    208
    154
    43
    Mar 21, 2018
    Ratings:
    +236
    Local Time:
    12:52 PM
    1.13.9
    10.0.22-MariaDB
    Changed way how script works. Now user dont need to enter db details when script runs. Just enter production domain and staging domain.

    Production to Staging:
    Code:
    sh staging-wordpress-cmm.sh --staging production_domain staging_domain
    Staging to Production:
    Code:
    sh staging-wordpress-cmm.sh --production production_domain staging_domain
     
  5. OxaByte.com

    OxaByte.com New Member

    4
    0
    1
    Jul 29, 2020
    Ratings:
    +0
    Local Time:
    12:52 PM
    Thanks for this. This made my life easy to create a staging site and getting back to production.