Created
April 1, 2016 17:05
-
-
Save shankie-codes/04a0f19cc5346928c95e7686f8df1913 to your computer and use it in GitHub Desktop.
Create a new site on a https-portal network
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Enter site name, e.g. 'hello' if you want to create 'hello.staging.properdesign.rs'" && \ | |
read SITE && \ | |
docker run -d -P \ | |
--link properstaging_db_1:mysql \ | |
--restart=always \ | |
-e "VIRTUAL_HOST=$SITE.staging.properdesign.rs" \ | |
-e "WORDPRESS_DB_NAME=$SITE" \ | |
-e "PRODUCTION=true" \ | |
-v /www/$SITE/uploads:/var/www/html/wp-content/uploads \ | |
-v /www/$SITE/plugins:/var/www/html/wp-content/plugins \ | |
-v /www/$SITE/themes:/var/www/html/wp-content/themes \ | |
--name="$SITE" \ | |
wordpress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment