Skip to content
Md Kamrul Hasan Pulok edited this page Nov 25, 2017 · 4 revisions
  • Run gulp prod (normal http mode)
  • https://certbot.eff.org/#ubuntuxenial-other
  • copy certificates in ./lockessential/config/sslcerts folder from ~/etc/letsencrypt/archive
  • before that permission need to be modified by followind shell cmd sudo chown -R hvpulok archive
  • rename key relevant files to cert.pem and key.pem
  • Add process.env.NODE_ENV = 'secure' in config/env/local-production.js

Server without nginx https://stackoverflow.com/a/23281417/5178733 https://www.digitalocean.com/community/tutorials/how-to-use-pm2-to-setup-a-node-js-production-environment-on-an-ubuntu-vps

Clone this wiki locally