We need to set up two ERPNext sites on the same production server:
erp.modia.com- Internal ERP interface (existing production system)modia.com- Public website with e-commerce functionality
Requirements:
- Both sites need to share the same inventory, stock levels, and order data
- Stock changes in ERP should immediately reflect on website
- Price updates in ERP should sync instantly to website
- Independent user interfaces (admin vs customer-facing)
- Both sites must run independently without cross-contamination
Current Challenge: During development testing, we experienced cross-contamination where one site would display data from the other site despite having separate databases and Redis configurations. We tried:
- Separate databases
- Different Redis database numbers
- Separate site configurations
- Cache clearing
Questions:
- What’s the proper way to configure two sites to share the same database?
- How do we prevent interface cross-contamination?
- Should we use same database or API integration between sites?
- Any specific nginx/site configuration needed?
- What are the best practices for this architecture?
Environment: ERPNext v15, Ubuntu server, nginx
Any guidance or examples would be greatly appreciated.