From 971fd92156c6da60bf0493a0a150ee3d5007ee05 Mon Sep 17 00:00:00 2001 From: M9713 <m9713@student.jamk.fi> Date: Wed, 30 Mar 2022 11:27:04 +0300 Subject: [PATCH] Update public_ip.sh --- conduit-front/public_ip.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conduit-front/public_ip.sh b/conduit-front/public_ip.sh index e3c88d3..4a94842 100644 --- a/conduit-front/public_ip.sh +++ b/conduit-front/public_ip.sh @@ -1,2 +1,3 @@ IP=$(curl https://api.ipify.org) -echo "REACT_APP_API_ROOT=$IP":30000/api > .env +# echo "REACT_APP_API_ROOT=$IP":30000 > .env +sed -i "s/localhost/"$IP"/g" src/agent.js -- GitLab