Skip to content

Commit

Permalink
fix: add higher php memory limit (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanLovely committed Sep 6, 2019
1 parent f922aa2 commit 237dc14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/twig-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ class TwigRenderer {
const sharedConfigPath = path.join(__dirname, `shared-config--${this.phpServerPort}.json`);
await fs.writeFile(sharedConfigPath, JSON.stringify(this.config, null, ' '));

const phpMemoryLimit = '4048M'; // @todo make user configurable
const params = [
'-d',
`memory_limit=${phpMemoryLimit}`,
path.join(__dirname, 'server--async.php'),
this.phpServerPort,
sharedConfigPath,
Expand Down

0 comments on commit 237dc14

Please sign in to comment.