How to install multiple erpnext in one server

Hi everyone,

Is there any suggested method to run multiple erpnext in one server?

Thank you.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
Hi Adam,

There are two ways,

* An easy way to do this is to run the install script again for another directory, and have the other site running at a different port.

* Or you can use the multi site system in erpnext. You can configure sites_dir in conf.py and run install with '--site' with the site name. The site name will have to be same as the HTTP Host header with with you make the request,

ie to use the site example1.com, example1.com should resolve to your server and the system selects the correct site to serve.

With this approach, you can serve multiple erpnext instances with a singe erpnext codebase, on the same port.



On Tue, Dec 17, 2013 at 1:59 PM, Adam Tong <ad...@gmail.com> wrote:
Hi everyone,

Is there any suggested method to run multiple erpnext in one server?

Thank you.



Note:



If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.



    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.




--
Pratik
erpnext
Hi Pratik,

Thank you so much for your answer.

But i didn't find the "sites_dir" config in conf.py file. Also, if using one codebase of erpnext, I think I need to config multiple databases config for each site, right? However, I only see there is one database config in conf.py as follows:

# database config
db_name = 'erpnext'
db_password = 'xxxxxxxxxxxx'

What is format of the config I need to add for sites_dir and its related database for each site?

Another confusing question is that whether I need to install the first erpnext first, then edit the conf.py file, then run:

 python2.7 install_erpnext.py --site example1.com

Am I right?

Thank you.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.

How to run different code base erpnext in same server?

@koshish Kindly open new thread with most of the details on what you expect to achieve.
Closing ancient thread for obvious reasons.