وضاحت
If you have a build / deployment process for your site, it’s often useful to have a way to execute code in your theme or plugins after you commit or deploy your code changes.
GitHub, Bitbucket, and Beanstalk are common tools that allow you to configure a webhook URL that gets called as soon as you make a check-in or deployment.
Common uses are
- Purge the cache after you deploy new theme code (WP Super Cache or W3 Total Cache)
- After you build your JavaScript/CSS, trigger a backup of the live site
- Trigger any WordPress hook
- Run any other plugin or theme code you wish!
More information on how to use this plugin (including how to setup GitHub, Bitbucket, and Beanstalk) can be found at http://jaredcobb.com/post-deployment-hook
The plugin is also hosted on GitHub. Pull requests are welcome!
تصوير
انسٽاليشن
- Upload the plugin folder to the
/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Enter a passphrase in the Settings > Post Deployment Hook options to secure your webhook
- Use the generated URL (including it’s token) as your post-deployment / post-commit hook url
FAQ
- Will this slow down my site?
-
Nope. While the plugin does execute on each page request, it simply checks if the request is a webhook call first. If not, it just exits.
- Who would use this plugin?
-
Probably developers. But anyone with some knowledge of WordPress could use this plugin to run jobs in WordPress by hitting the URL this plugin provides.
جائزا
ھن پلگ ان لاءِ ڪي به رايا ناھن.
تعاون ڪندڙ & ڊولپرز
“Post Deployment Hook” اوپن سورس سافٽ ويئر آهي. ھيٺين ماڻھن ھن پلگ ان ۾ حصو ورتو آھي.
تعاون ڪندڙترجمو ڪريو “Post Deployment Hook” توهان جي ٻولي ۾.
ڊولپمينٽ ۾ دلچسپي؟
ڪوڊ براؤز ڪريو، چيڪ ڪريو SVN مخزن، يا رڪنيت حاصل ڪريو ڊولپمينٽ لاگ پاران RSS.
لاگ تبدیل ڪريو
1.0.1
- Updated README.txt and added screenshots
1.0.0
- Initial commit