hexo-stripepay-deployer-heroku
v0.0.3
Published
Heroku deployer plugin of Hexo with added Stripe payment processing.
Downloads
6
Readme
hexo-stripepay-deployer-heroku
(modified Fork of hexo-deployer-heroku Upstream)
Heroku deployer plugin for Hexo.
Installation
$ npm install hexo-stripepay-deployer-heroku --save
Options
You can configure this plugin in _config.yml
.
# You can use this:
deploy:
type: heroku
repo: <repository url>
message: [message]
- repo: Repository URL
- message: Commit message. The default commit message is
Site updated: {{ now('YYYY-MM-DD HH:mm:ss') }}
.
Reset
Remove .deploy_heroku
folder.
$ rm -rf .deploy_heroku
Stripe payment integration
pay.php is added in .deploy_heroku target for credit card processing in the heroku nginx PHP container in which hexo-generated static html/css/js assets reside. Also, a simple custom nginx.conf with heroku Procfile mod is added so as to redirect all site traffic to SSL/HTTPS. This is configured to work with Heroku ACM (Automatic Certificate Management). Simply substitute heroku-stripepay-deployer-heroku for the original hexo-deployer-heroku Hexo Plugin, and point a Stripe Checkout form action in your Hexo content to /pay.php/ so as to enable your hexo -powered site with eCommerce payment processing via Stripe!
License
MIT