Skip to content
Snippets Groups Projects
Commit 6733b275 authored by Éloïs's avatar Éloïs
Browse files

fix: node v8 out of memory

parent 984bbf6e
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,11 @@ fn gen_webstart_args(args: &DuniterWebstartArgs, duniter_ts_args: &mut Vec<Strin
}
pub(crate) fn gen_duniter_ts_args(args: &DuniterArgs, duniter_js_exe: String) -> Vec<String> {
let mut duniter_ts_args = vec![duniter_js_exe];
let mut duniter_ts_args = vec![
"--max-old-space-size".to_owned(),
"4096".to_owned(),
duniter_js_exe,
];
if let Some(ref home) = args.home {
duniter_ts_args.push("--home".to_owned());
duniter_ts_args.push(home.to_str().expect("invalid home path").to_owned());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment