Created
March 8, 2017 22:43
-
-
Save rorymcdaniel/9bf4af7c7a98f812cdb3813585ba2f23 to your computer and use it in GitHub Desktop.
Deployment Script for Pagely VPS and Envoyer
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
#Copy/paste this into the "Before This Action" hook of "Activate New Release" | |
cd {{release}} | |
# choose the directory dynamically in case of upgrade | |
wordPressDirectory=$(ls -d ../../../wordpress-*/ | tail -1) | |
ln -s ${wordPressDirectory}index.php . | |
ln -s ${wordPressDirectory}wp-activate.php . | |
ln -s ${wordPressDirectory}wp-admin/ . | |
ln -s ${wordPressDirectory}wp-blog-header.php . | |
ln -s ${wordPressDirectory}wp-comments-post.php . | |
ln -s ${wordPressDirectory}wp-cron.php . | |
ln -s ${wordPressDirectory}wp-includes/ . | |
ln -s ${wordPressDirectory}wp-links-opml.php . | |
ln -s ${wordPressDirectory}wp-login.php . | |
ln -s ${wordPressDirectory}wp-mail.php . | |
ln -s ${wordPressDirectory}wp-settings.php . | |
ln -s ${wordPressDirectory}wp-signup.php . | |
ln -s ${wordPressDirectory}wp-trackback.php . | |
ln -s ${wordPressDirectory}xmlrpc.php . |
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
# Copy/paste this into the "After This Action" hook of "Activate New Release" | |
# Because of the chroot environment, all the symlinks work better when relative instead of the | |
# absolute symlinks that Envoyer does by default | |
cd {{project}} | |
rm current | |
ln -s releases/$(basename {{release}}) current |
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
# Thanks to Arman Zakaryan at Pagely for this suggestion | |
# Obviously, replace example.com with your production URL | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule (.*) http://www.example.com/wp-content/uploads/$1 [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment