Project

General

Profile

New Function #512

Updated by Toby Pham 2 months ago

<p class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">[IM360APP]</p> <p>[IM360APP]</p> 

 <p class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;"><strong class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">1. <p><strong>1. .env</strong><br /> 
 &nbsp; - seperate by 2 files (dev/prod)</p> 

 <p class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;"><strong class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">2.Server <p><strong>2.Server URL</strong></p> 

 <p class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">&nbsp; <p>&nbsp; - define URL into env config<br /> 
 <br /> 
 &nbsp; 1) <strong class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">INMUN_APP_API_URL</strong><br <strong>INMUN_APP_API_URL</strong><br /> 
 &nbsp; &nbsp; - dev: https://dev.stoneitgt.com/networkApi/<br /> 
 &nbsp; &nbsp; - prod: https://inmun360.culture.go.kr/b2bcApi/<br /> 
 &nbsp; 2) <strong class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">INMUN_CHAT_API_URL</strong><br <strong>INMUN_CHAT_API_URL</strong><br /> 
 &nbsp; &nbsp; - dev: https://dev.stoneitgt.com/networkChatApi/<br /> 
 &nbsp; &nbsp; - prod: https://dev.stoneitgt.com/networkChatApi/<br /> 
 &nbsp; 3) <strong class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">INMUN_USER_URL</strong><br <strong>INMUN_USER_URL</strong><br /> 
 &nbsp; &nbsp; - dev: https://dev.stoneitgt.com/networkUser/<br /> 
 &nbsp; &nbsp; - prod: https://inmun360.culture.go.kr/b2b/</p> 

 <p class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">3.<strong class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">replace <p>3.<strong>replace hard-coding URL with env variable</strong></p> 

 <p class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">&nbsp; <p>&nbsp; 1) src\service\connector\index.js<br /> 
 &nbsp; &nbsp; a) line 3 : ip<br /> 
 &nbsp; &nbsp; &nbsp; - use INMUN_APP_API_URL<br /> 
 &nbsp; &nbsp; b) line 4 : webviewIp<br /> 
 &nbsp; &nbsp; &nbsp; - use INMUN_CHAT_API_URL<br /> 
 <br /> 
 &nbsp; 2) src\screens\RegisterRoleSelectPage\index.js<br /> 
 &nbsp; &nbsp; a) line 34<br /> 
 &nbsp; &nbsp; &nbsp; -&nbsp;use INMUN_USER_URL<br /> 
 <br /> 
 &nbsp; 3) src\screens\RegisterWebviewPage\index.js<br /> 
 &nbsp; &nbsp; a)&nbsp;line 89<br /> 
 &nbsp; &nbsp; &nbsp; -&nbsp;use INMUN_APP_API_URL<br /> 
 <br /> 
 &nbsp; 4) src\screens\SearchAddressPage\index.js,<br /> 
 &nbsp; &nbsp; &nbsp;src\screens\ChatPage\index.js,<br /> 
 &nbsp; &nbsp; &nbsp;src\screens\CreateAttendPage\component\GpsAttend\index.js,<br /> 
 &nbsp; &nbsp; &nbsp;src\screens\GpsPage\index.js<br /> 
 &nbsp; &nbsp; a) http://3.39.10.94:8080/<br /> 
 &nbsp; &nbsp; &nbsp; - use INMUN_CHAT_API_URL</p> 

Back