sudo apt install git-all
ssh-keygen -t rsa -b 4096 -C "deploy"
cat ~/.ssh/id_rsa.pub
| // Put this file in a directory where @stencil/core exists in node_modules, then run: +var stencil = require('@stencil/core/server'); | |
| // $ echo $HTML | node ssr.js [root] [build-dir] [namespace] | |
| // Full example from my use case: | |
| // $ echo '<sam-text text="Hello, world"></sam-text>' | node ssr.js /var/www/stencil/sams-components/ ../dist sam | |
| // Pipes are used because HTML strings can be really long, and bash has limits on how large argument lists can get (~256k usually). | |
| var stencil = require('@stencil/core/server'); | |
| var args = process.argv.slice(2); | |
| if (args.length < 3) { | |
| console.error('Not enough args'); | |
| } |