Open afiqahas92 opened 1 year ago
Replace the last command with the following
cd /ModernWMS/backen/ && dotnet ModernWMS.dll --urls http://0.0.0.0:20011
thanks for the reply. yes noticed that, and changed. But seems like the backend still not running even though I've open that particular port. website still can't use
modify file .env.production
and rebuild frontend with the following
cd /tmp/ModernWMS-master/frontend/
sed -i 's#http://127.0.0.1#http://IP address#g' ./.env.production
yarn && yarn build && cp -rf /tmp/ModernWMS-master/frontend/dist/* /etc/nginx/html/
I've followed all the steps. Now the backend running when I checked http://ipaddress:20011 and try out the api. seems like database already connected correctly. But the frontend still requested from 127.0.0.1
Through the screenshot of the file [.env.production] provided by you, you have modified it correctly. Please check whether the compiled front end is accurately overwritten to the nginx directory "/etc/nginx/html/" .
if not, please retry the following
cd /tmp/ModernWMS-master/frontend/
yarn && yarn build
cp -rf /tmp/ModernWMS-master/frontend/dist/* /etc/nginx/html/
Through the screenshot of the file [.env.production] provided by you, you have modified it correctly. Please check whether the compiled front end is accurately overwritten to the nginx directory "/etc/nginx/html/" . if not, please retry the following
cd /tmp/ModernWMS-master/frontend/
yarn && yarn build
cp -rf /tmp/ModernWMS-master/frontend/dist/* /etc/nginx/html/
Actually I've done it all for few times already. Whenever I built new frontend, I'll check on "/etc/nginx/html/" folder. They're copied and updated whenever I executed the commands. That's why I'm not sure what else I'm missing that the ip address not changing.
Have you cleared the browser's cache after recompiling and overwritten to the nginx directory ?
yes, cleared cache every time I rebuild. I even redo everything back for frontend in case I miss any step. But still request from http:127.0.0.1
It is recommended that you find a new server and reinstall it.
It got this error when I try to run the .dll. this at the last step