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

Installation went smoothly, but there was a timeout prompt when logging in to the frontend #39

Closed billydu1980 closed 2 months ago

billydu1980 commented 2 months ago

Ubuntu 22.04 system, ModernWMS installation and configuration process without any errors. When logging in to the front-end webpage, it prompts operation timeout. Backend: 20011 accesses normally; When compiling the front-end code, I noticed the documentation prompt and edited the. env. production file to define the actual IP address of the server. In addition, the default database file/ModernWMS/backend/wms.db has not been changed.

Also, please let me know if there are any other configuration requirements besides modifying the appsettings. json file if we use PostgreSQL database instead? Please provide a clear answer.

back timeout

Best regards! adu

billydu1980 commented 2 months ago

Why hasn't anyone responded? Can this software still be used by somebody? Why do open source software intentionally set bugs, and how can more people participate in testing.

809388027 commented 2 months ago

Hello, this issue is usually due to a problem with the backend address configured in the front-end project. Based on your configuration, the .env.production should be set to: image After saving the changes, simply run npm run build to deploy.

809388027 commented 2 months ago

If you are in the development environment, the file you should modify is: .env.development.

billydu1980 commented 2 months ago

I have found the reason and need to configure the Postgres database firstly

postgresql

sudo -i -u postgres psql ALTER USER postgres WITH PASSWORD '123456'; CREATE DATABASE wms; \list \q exit

Import database script

sudo -u postgres psql -d wms -f database_postgresql.sql

Change database type

nano /ModernWMS/backend/appsettings.json

"AllowedHosts": "*", "Database": { "db": "PostGres" }, "ConnectionStrings": { "PostGresConn": "Server=192.168.1.141;Port=5432;User Id=postgres;Password=123456;Database=wms;"