xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

pdf & watermark & puppeteer

pdf & watermark & puppeteer

partly transparent background image

https://en.wikipedia.org/wiki/Watermark

demo

https://www.ilovepdf.com/pdf_add_watermark

pdf & watermark

tools

https://github.com/chuongtrh/html_to_pdf

https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagegotourl-options

https://www.npmjs.com/search?q=keywords:pdf-watermark

https://github.com/Jimmy-JS/react-pdf-watermark

PM2

https://pm2.io/doc/en/runtime/guide/installation/

https://github.com/Unitech/PM2/

https://blog.linuxeye.cn/435.html

$ npm install pm2 -g

https://raw.githubusercontent.com/Unitech/pm2/master/packager/setup.deb.sh

PM2 ecosystem.config.js

ecosystem.config.js

module.exports = {
  apps : [{
    name: "app",
    script: "./app.js",
    env: {
      NODE_ENV: "development",
    },
    env_production: {
      NODE_ENV: "production",
    }
  }]
}

# $ pm2 [start|restart|stop|delete] ecosystem.config.js

$ pm2 start ecosystem.config.js

https://doc.pm2.io/en/runtime/guide/ecosystem-file/

https://pm2.keymetrics.io/docs/usage/application-declaration/

https://stackoverflow.com/questions/47166609/how-can-i-get-pm2-to-use-my-ecosystem-config-js-file-on-reboot

https://yarnpkg.com/en/docs/cli/install

refs



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


posted @ 2018-10-09 13:43  xgqfrms  阅读(477)  评论(6编辑  收藏  举报