Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shankie-codes/04a0f19cc5346928c95e7686f8df1913 to your computer and use it in GitHub Desktop.
Save shankie-codes/04a0f19cc5346928c95e7686f8df1913 to your computer and use it in GitHub Desktop.
Create a new site on a https-portal network
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