fjykTec / ModernWMS

The open source simple and complete warehouse management system is derived from our many years of experience in implementing erp projects. We stripped the original commercial system wms function and opened it up for free, hoping to help the majority of small and medium-sized enterprises. At present, the system supports cross-platform。
https://modernwms.ikeyly.com/
Apache License 2.0
874 stars 273 forks source link

[Bug] Error on Startup.cs (Linux) #11

Open afiqahas92 opened 1 year ago

afiqahas92 commented 1 year ago

Screenshot 2023-03-22 111244

It got this error when I try to run the .dll. this at the last step

leucoon commented 1 year ago

Replace the last command with the following cd /ModernWMS/backen/ && dotnet ModernWMS.dll --urls http://0.0.0.0:20011

afiqahas92 commented 1 year ago

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 Untitled

leucoon commented 1 year ago

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/

afiqahas92 commented 1 year ago

login Screenshot 2023-04-04 175507 Screenshot 2023-04-05 145504

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

leucoon commented 1 year ago

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/

afiqahas92 commented 1 year ago

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.

leucoon commented 1 year ago

Have you cleared the browser's cache after recompiling and overwritten to the nginx directory ?

afiqahas92 commented 1 year ago

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 1 2

leucoon commented 1 year ago

It is recommended that you find a new server and reinstall it.