| ... | @@ -32,8 +32,8 @@ Command Line Tools Requirements: |
... | @@ -32,8 +32,8 @@ Command Line Tools Requirements: |
|
|
mysql --host=$BUILD_RDS_HOST --user=$BUILD_RDS_USER --port=$BUILD_RDS_PORT --password=$BUILD_RDS_PASSWORD marketplace < proddump-{git-commit-hash}.sql
|
|
mysql --host=$BUILD_RDS_HOST --user=$BUILD_RDS_USER --port=$BUILD_RDS_PORT --password=$BUILD_RDS_PASSWORD marketplace < proddump-{git-commit-hash}.sql
|
|
|
rm proddump-{git-commit-hash}.sql
|
|
rm proddump-{git-commit-hash}.sql
|
|
|
cd $APPROOT
|
|
cd $APPROOT
|
|
|
wp search-and-replace "http://blocpower.us" "http://staging.marketplace.blocpower.us"
|
|
wp search-replace "http://blocpower.us" "http://staging.marketplace.blocpower.us"
|
|
|
wp search-and-replace "http://www.blocpower.us" "http://staging.marketplace.blocpower.us"
|
|
wp search-replace "http://www.blocpower.us" "http://staging.marketplace.blocpower.us"
|
|
|
mysqldump --host=$RDS_HOSTNAME --port=$RDS_PORT --user=$RDS_USER --password=$RDS_PASSWORD --add-drop-table marketplace > stagingdump-{git-commit-hash}.sql
|
|
mysqldump --host=$RDS_HOSTNAME --port=$RDS_PORT --user=$RDS_USER --password=$RDS_PASSWORD --add-drop-table marketplace > stagingdump-{git-commit-hash}.sql
|
|
|
mysql --host=$STAGING_RDS_HOST --user=$STAGING_RDS_USER --port=$STAGING_RDS_PORT --password=$STAGING_RDS_PASSWORD marketplace < stagingdump-{git-commit-hash}.sql
|
|
mysql --host=$STAGING_RDS_HOST --user=$STAGING_RDS_USER --port=$STAGING_RDS_PORT --password=$STAGING_RDS_PASSWORD marketplace < stagingdump-{git-commit-hash}.sql
|
|
|
aws s3 mv stagingdump-{git-commit-hash}.sql s3://blocpower.us.builds/marketplace/sql/stagingdump-{git-commit-hash}.sql`
|
|
aws s3 mv stagingdump-{git-commit-hash}.sql s3://blocpower.us.builds/marketplace/sql/stagingdump-{git-commit-hash}.sql`
|
| ... | | ... | |