Want to subscribe to topics you're interested in?
Become a Member

Install Wordpress Staging Centminmod

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

  1. brijendrasial

    brijendrasial Active Member

    194
    137
    43
    Mar 21, 2018
    Ratings:
    +218
    Local Time:
    1:43 AM
    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

    194
    137
    43
    Mar 21, 2018
    Ratings:
    +218
    Local Time:
    1:43 AM
    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

    50,902
    11,799
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,255
    Local Time:
    6:13 AM
    Nginx 1.25.x
    MariaDB 10.x
    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

    194
    137
    43
    Mar 21, 2018
    Ratings:
    +218
    Local Time:
    1:43 AM
    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:
    1:43 AM
    Thanks for this. This made my life easy to create a staging site and getting back to production.