fix(README): recommend using .localhost instead of .dev (#46422)

All `.dev` domains have HSTS enforced by default and so require SSL to access.

`.localhost` hosts automatically resolve without requiring edits to hosts files

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang
2025-03-10 16:27:01 +05:30
committed by GitHub
parent 9026b67333
commit f9cac1c186

View File

@@ -114,10 +114,7 @@ To setup the repository locally follow the steps mentioned below:
2. In a separate terminal window, run the following commands: 2. In a separate terminal window, run the following commands:
``` ```
# Create a new site # Create a new site
bench new-site erpnext.dev bench new-site erpnext.localhost
# Map your site to localhost
bench --site erpnext.dev add-to-hosts
``` ```
3. Get the ERPNext app and install it 3. Get the ERPNext app and install it
@@ -126,10 +123,10 @@ To setup the repository locally follow the steps mentioned below:
bench get-app https://github.com/frappe/erpnext bench get-app https://github.com/frappe/erpnext
# Install the app # Install the app
bench --site erpnext.dev install-app erpnext bench --site erpnext.localhost install-app erpnext
``` ```
4. Open the URL `http://erpnext.dev:8000/app` in your browser, you should see the app running 4. Open the URL `http://erpnext.localhost:8000/app` in your browser, you should see the app running
## Learning and community ## Learning and community