From f715949c5cd2cda5bdea0a71cccdeacef7a87d09 Mon Sep 17 00:00:00 2001 From: Yalh Date: Tue, 29 Jan 2019 01:39:53 +0100 Subject: [PATCH] Fix the header of the public page --- scripts/install | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index 8a1417b..a31b7f4 100644 --- a/scripts/install +++ b/scripts/install @@ -184,14 +184,8 @@ popd #cp ../conf/package.json "$final_path/package.json" #ynh_replace_string "__PORT__" "$port" "$final_path/package.json" -#npm audit fix -#npm install -g npm-install-peers -#npm-install-peers -#npm install -g typescript -#npm install -g ts-node -#npm install typescript@>=2.0 --save -#npm install @types/node -#(cd $final_path && npm install --only=production) +#Fix a error in the public page +ynh_replace_string "res.writeHead(200)" "res.writeHead(200, {\"content-type\": \"text/html\",})" "$final_path/src/distbin-html/public.ts" #================================================= # SETUP SYSTEMD