Skip to content

Instantly share code, notes, and snippets.

@matomesc
Created March 27, 2017 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matomesc/c749e1e3c8834fab1ac376c49cbeb314 to your computer and use it in GitHub Desktop.
Save matomesc/c749e1e3c8834fab1ac376c49cbeb314 to your computer and use it in GitHub Desktop.
Ionic 2: Run live-reload server over ssl
// Open locally https://github.com/driftyco/ionic-app-scripts/blob/master/src/dev-server/live-reload.ts
// and add the following options when creating the tinylr server (around line 10):
const liveReloadServer = tinylr({
key: fs.readFileSync(path.join(process.cwd(), 'proxy/server.key')),
cert: fs.readFileSync(path.join(process.cwd(), 'proxy/server.crt')),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment