Erpnext Logo

how to add a second erpnext instance on ubuntu

Assuming you have followed my previous guide on installing erpnext on a fresh ubuntu instance (http://blog.grs.gr/?p=518&lang=en), we will show you how to install a second site on the same server (DNS based multitenancy).

The process is quite simple:

  • Start by configuring your DNS. Point www.example2.com to your server’s IP address.
  • SSH to your VPS and login as erpnext user (we assume you have followed http://blog.grs.gr/?p=518&lang=en to create erpnext user)
  • su erpnext

    Change to home directory where frappe-bench is located.

  • cd ~/frappe-bench
  • Enable DNS based multinenancy.
bench config dns_multitenant on
  • Setup the new site.
  • bench new-site www.example2.com
  • Install erpnext app on new site.
  • bench --site www.example2.com install-app erpnext
  • Install erpnext app on new site.
  • bench setup nginx
  • Reloads nginx to apply the new configuration.
  • sudo service nginx reload

Point your browser to www.example2.com. Make sure that www.example1.com still works 🙂 You are done. 

References


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *