网易严选 PWA
仿网易严选的 PWA 应用 以及一个高性能的HTTP/2服务器
npm i
npm i -g pm2 lavas
generate a ssl certificate using Let's Encrypt.
sudo certbot certonly --standalone --preferred-challenges tls-sni -d you.keyin.me
append following lines to the /etc/hosts
file.
127.0.0.1 you.keyin.me
npm run dev
pm2 start pm2.dev.json
npm run build
pm2 start pm2.prod.json
sudo setcap 'cap_net_bind_service=+ep' `which node`