In config/environment.js:
// config/environment.js
'use strict';
/*
* Mostly this is the stock module config.| #!/bin/sh | |
| port=${1-1919} | |
| # 1. Navigate to the built folder & start a server in it | |
| cd public | |
| python -m SimpleHTTPServer "$port" & | |
| server_pid=$! | |
| # 2. Trap any killing of this process so that we kill the backgrounded server |
| ;(function () { | |
| const on = window.addEventListener | |
| let parent = null | |
| const _post = function () { | |
| parent.postMessage( | |
| { | |
| type: 'FRAME_HEIGHT', | |
| height: document.documentElement.scrollHeight, | |
| }, |