Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make fast-boot production ready. Add to docker image. (#1962)
- Loading branch information
1 parent
5f8c556
commit aede94f
Showing
6 changed files
with
43 additions
and
972 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const FastBootAppServer = require('fastboot-app-server'); | ||
|
||
const enableGzip = process.env.FASTBOOT_GZIP || 'true'; | ||
const fastbootDistPath = process.env.FASTBOOT_DIST_PATH || '/fastboot/app'; | ||
const enableChunkedResponse = process.env.FASTBOOT_CHUNKED_RESPONSE || 'true'; | ||
const fastbootHost = process.env.FASTBOOT_HOST || '0.0.0.0'; | ||
const fastbootPort = process.env.FASTBOOT_PORT || process.env.PORT || '4000'; | ||
const fastbootWorkers = process.env.FASTBOOT_WORKERS || '1'; | ||
|
||
let fastbootServer = new FastBootAppServer({ | ||
distPath : fastbootDistPath, | ||
gzip : enableGzip === 'true', | ||
host : fastbootHost, | ||
port : parseInt(fastbootPort), | ||
chunkedResponse : enableChunkedResponse === 'true', | ||
workerCount : parseInt(fastbootWorkers) | ||
}); | ||
|
||
fastbootServer.start(); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.