Creating New Site in the same Bench

This thread is very interesting.

I too like the idea of the having two instances (it that the the correct term) of erpnext.
One for development and Testing (DatabaseDev and AppDev)
and one for production (DatabaseProd and AppProd).

The dev/testing environment can be used for training also. Any other uses?

Can you continue the thread and roughly (or in detail) describe the steps to install another bench.

Is this the correct approach

Can you provide me steps for installing another bench?
Also can we have multiple bench running at the same time.?
Please throw some light on multiple bench instance.

Also please provide a way to change from develop mode to production so that i dont have to start the bench again and again.

For installing another bench:

bench init frappe-bench2

(Do this outside of your bench folder)
Install new site the same way you did for your old bench. Install erpnext.
Now you can bench start in the new frappe-bench2 folder, or you can set it up for production.
To check what port is assigned to sites in new bench, check sites/common_site_config.json.

3 Likes

127.0.0.1 localhost
127.0.1.1 di1

The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

127.0.0.1 brillare
127.0.0.1 site1.local

only one site open if i am write brillare:8000 or site1.local:8000 whatever

Multitenant dns works in production mode , switch to it or install frappe-bench2 in production mode like suggestes in
Creating New Site in the same Bench - #25 by netchampfaris

I know its been a while since this thread was active , but i still want to clarify -

1.Can i have multiple production sites setup on production bench ?

  1. how can the changes in the develop bench be duplicated to all or specific sites of production bench?
    can that even be done?
  2. and suppose i want to do this on server , each site on production can have its own registered DNS?
    can you please help me.

Thanks

Any one got any answers for this !

Iā€™m still getting dns error on subdomainā€¦

Iā€™ve renamed in etc/hosts file

127.0.1.1 ubuntu-1gb-blr1-01 ubuntu-1gb-blr1-01
127.0.0.1 localhost

127.0.1.1 ubuntu-1gb-blr1-01 ubuntu-1gb-blr1-01
127.0.0.1 ticked.in
127.0.0.1 beta.ticked.in

The /etc/hosts setup is only for development and not production

I didnā€™t know that. Thanks for letting me know. :+1:

I am new to ERPNext, kindly tell me the location of etc/hosts file. i am working from last 3 days but no outcome uptill now.

Try

vi /etc/hosts

If by some strange reason you cannot find it there then try

locate hosts

to edit the hosts file just type sudo vim /etc/hosts in the terminal

Thanks, i tried sudo nano /etc/hosts and it workedā€¦!

My ERPNEXT is running on an IP address and now Iā€™m creating another bench site but the issue is Iā€™m not sure what name I should use for another site in this case. bench new-site site2name I cannot use the same IP and if Iā€™m defining the site name with the same IP along with a port, for example, 192.168.1.1:9000, in this case, it is creating the site but when Iā€™m trying to reach this it is giving cannot/get an error on the browser level.

The old ERP is running fine. please suggest @netchampfaris

kind regards,
syed saad