How to run two sites simultaneously in development environment

Hii all i want to know that how i can run two sites simulteniously in devlopment enviornment of erpnext

Assuming you have setup one site and its working correctly and are using dns for multisite…

Ensure DNS multi-tenant is activated:
bench config dns_multitenant on

Then create new site:

bench new-site


bench get-app erpnext

Then install using:

bench --site install-app erpnext

You will be prompted for your MYSQL/MariaDB password and also to enter a new admin password (this will be for username Administrator).

Once setup you can start bench using:
bench start