Try ERPNext Buy Support Partners Foundation Foundation Members

Erro 404 not found on production ubuntu with Multitenancy

I install bench and frappe, and set to use Multitenancy like these:

1- Use the “easy deploy script” works fine…
2- Need to use Multitenancy based on DNS…

Primary server: erpbr.com.br
site1: teste.erpbr.com.br

3- activate multitenancy with dns
$ bench config dns_multitenant on

4- create a new site:
$ bench new-site teste.erpbr.com.br

5- follow next steps:
$ bench setup nginx
$ sudo service nginx reload

Works fine… I can reach the teste.erpbr.com.br but login doesn’t show, and looking into the console get these error:

GET http://teste.erpbr.com.br/assets/css/frappe-web.css net::ERR_ABORTED 404 (Not Found)

2(index):374 GET http://teste.erpbr.com.br/assets/js/frappe-web.min.js net::ERR_ABORTED 404 (Not Found)

Asset is not provided by nginx, I think…

So, I miss something during my setup?

Regards

I do not know the reason, but… if you install using different user show these error… to work fine, you should build using frappe user…