Also i am unable to understand how i can convert my new site to production mode.
so that i dont have to do bench start again and again for it.
Is there a way?
Hi there,
My other site isnt working.
I have set the port for develop.dev to 8080
and for erpnext.dev to 8000
So when typing the url to develop.dev:8080, the site does not gets load.
While i type develop.dev:8000 the site loads directly the erpnext.dev:8000
I can say this because when i launched my erpnext.dev site and logged in and similarly i did for develop.dev:8000 then i was already logged in to the site of the same user i have logged in the erpnext.dev
Any Update on this?
You can’t setup 1 site in develop and 1 site in production. You will need to setup another bench just for production.
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
.
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 ?
- how can the changes in the develop bench be duplicated to all or specific sites of production bench?
can that even be done? - 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.
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