Multi-tenant Setup

Guys, sorry.. Rookie question.

I've created 2 separate sites locally - site1.local and site2.local. First is my actual ERPNext setup and 2nd one is the demo.

I've also made port changes as mentioned in the multi-tenant setup guide (site2 mapped to port 82)

How do I actually access site2? (localhost:8082, localhost:82 not working)

Right now, I need to set one of them as default to be able to access it on localhost:8000


Thanks a lot!

Omkar



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. 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.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. 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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAOnj–LEMDwo0htD41-Ns1FbTr8gSU8Lj6dE_pTEY0W3E8%2BVPw%40mail.gmail.com.

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

On Thu, Sep 4, 2014 at 11:47 AM, Omkar Ghatpande
om...@gmail.com wrote:

Guys, sorry… Rookie question.

I’ve created 2 separate sites locally - site1.local and site2.local. First
is my actual ERPNext setup and 2nd one is the demo.

I’ve also made port changes as mentioned in the multi-tenant setup guide
(site2 mapped to port 82)

How do I actually access site2? (localhost:8082, localhost:82 not working)

Right now, I need to set one of them as default to be able to access it on
localhost:8000

Thanks a lot!

Omkar

Hi Omkar,

Have you setup nginx?
If yes, did you try reloading it?

Thanks,

Pratik
erpnext

Hi Pratik,

Yes.. I've setup nginx. My /nginx/conf.d has a frappe.conf which lists both the servers/ports/sites.

Is there any additional setting I should be checking?

Thanks for the response,

Omkar


On Thu, Sep 4, 2014 at 12:28 PM, Pratik Vyas <pd...@gmail.com> wrote:
On Thu, Sep 4, 2014 at 11:47 AM, Omkar Ghatpande
<om...@gmail.com> wrote:
> Guys, sorry.. Rookie question.
>
> I've created 2 separate sites locally - site1.local and site2.local. First
> is my actual ERPNext setup and 2nd one is the demo.
>
> I've also made port changes as mentioned in the multi-tenant setup guide
> (site2 mapped to port 82)
>
> How do I actually access site2? (localhost:8082, localhost:82 not working)
>
> Right now, I need to set one of them as default to be able to access it on
> localhost:8000
>
> Thanks a lot!
>
> Omkar

Hi Omkar,

Have you setup nginx?
If yes, did you try reloading it?

Thanks,
--
Pratik
erpnext

--
Note:

If you are posting an issue,

1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAG8U0Eka13XFD7GC7FMOR%2Bn81SHvP70RcywJmRx-Z%2BX%2B01W_XA%40mail.gmail.com.

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




Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. 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.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. 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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAOnj–LArN_qLRzVxNGA193rjdxxixPDAVf%3DqSfTrXBoQMT1Wg%40mail.gmail.com.

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

On Thu, Sep 4, 2014 at 12:39 PM, Omkar Ghatpande
om...@gmail.com wrote:

Hi Pratik,

Yes… I’ve setup nginx. My /nginx/conf.d has a frappe.conf which lists both
the servers/ports/sites.

Is there any additional setting I should be checking?

Thanks for the response,

Omkar

Hi Omkar,

Is nginx running? Test using curl localhost:80

If yes, please post the generated nginx config on dpaste.com.

Thanks,

Pratik
erpnext

Hi Pratik,

Yes, nginx is running as well - curl o/p - http://dpaste.com/3V2EHZ4


Thanks

Omkar


On Thu, Sep 4, 2014 at 2:41 PM, Pratik Vyas <pd...@gmail.com> wrote:
On Thu, Sep 4, 2014 at 12:39 PM, Omkar Ghatpande
<om...@gmail.com> wrote:
> Hi Pratik,
>
> Yes.. I've setup nginx. My /nginx/conf.d has a frappe.conf which lists both
> the servers/ports/sites.
>
> Is there any additional setting I should be checking?
>
> Thanks for the response,
>
> Omkar
>

Hi Omkar,

Is nginx running? Test using `curl localhost:80`

If yes, please post the generated nginx config on dpaste.com.

Thanks,
--
Pratik
erpnext

--
Note:

If you are posting an issue,

1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  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.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAG8U0Env3n_6DcTzU9Hz0ktd6mD-6O4SuLZwbX_vaWzTphbZWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. 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.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. 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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAOnj–%2BCRiOtVtcc-PTyr5eP9e%3DcK5QQ_wY%3D17RzvGk7pjmGmA%40mail.gmail.com.

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

On Thu, Sep 4, 2014 at 2:57 PM, Omkar Ghatpande
om...@gmail.com wrote:

Hi Pratik,

Yes, nginx is running as well - curl o/p - http://dpaste.com/3V2EHZ4

Config file - http://dpaste.com/15KKRGX

Thanks

Omkar

Okay,

the response is of nginx default page.

If your config is correctly linked, your nginx restart must have
failed complaining that there are two default server block for port
80.

what is the output of
sudo service nginx restart?

Yup, not able to restart - though not sure how I can see the localhost page :)

om...@omkar-Vostro-1014:~$ sudo service nginx restart
* Restarting nginx nginx [fail]

Tried debugging this further, got:

om...@omkar-Vostro-1014:~$ sudo nginx -c /etc/nginx/nginx.conf -t
nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/default:21
nginx: configuration file /etc/nginx/nginx.conf test failed

Should I remove this duplicate entry? Also, any changes required in /nginx/sites-available and /ngnix/sites-enabled?


Thanks a lot,

Omkar


On Thu, Sep 4, 2014 at 3:32 PM, Pratik Vyas <pd…@gmail.com> wrote:

On Thu, Sep 4, 2014 at 2:57 PM, Omkar Ghatpande
<om...@gmail.com> wrote:
> Hi Pratik,
>
> Yes, nginx is running as well - curl o/p - http://dpaste.com/3V2EHZ4
>
> Config file - http://dpaste.com/15KKRGX
>
> Thanks
>
> Omkar
>

Okay,

the response is of nginx default page.

If your config is correctly linked, your nginx restart must have
failed complaining that there are two default server block for port
80.

what is the output of
`sudo service nginx restart`?

--
Note:

If you are posting an issue,

1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  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.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAG8U0EkGBb4z5Z_G8aDP47FVGJ%2Bp0tTb_XQ-c3oe9b6_X3oJjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. 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.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. 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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAOnj–KFK%2B1AQ65hSdk9qybXjDMyF2sENtHGiqBKSmZ0AwWD7A%40mail.gmail.com.

    For more options, visit https://groups.google.com/d/optout.
Hi Pratik,

Update - removed both default files from /nginx/sites-enabled and /nginx/sites-available. Now I'm able to start/restart nginx properly. I can also access localhost:82 but again it'll load with my default site.

Any pointers?

Thanks,

Omkar


On Thu, Sep 4, 2014 at 3:54 PM, Omkar Ghatpande <om...@gmail.com> wrote:
Yup, not able to restart - though not sure how I can see the localhost page :)

om...@omkar-Vostro-1014:~$ sudo service nginx restart
* Restarting nginx nginx [fail]

Tried debugging this further, got:

om...@omkar-Vostro-1014:~$ sudo nginx -c /etc/nginx/nginx.conf -t
nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/default:21
nginx: configuration file /etc/nginx/nginx.conf test failed

Should I remove this duplicate entry? Also, any changes required in /nginx/sites-available and /ngnix/sites-enabled?


Thanks a lot,

Omkar


On Thu, Sep 4, 2014 at 3:32 PM, Pratik Vyas <pd…@gmail.com> wrote:

On Thu, Sep 4, 2014 at 2:57 PM, Omkar Ghatpande
<om...@gmail.com> wrote:
> Hi Pratik,
>
> Yes, nginx is running as well - curl o/p - http://dpaste.com/3V2EHZ4
>
> Config file - http://dpaste.com/15KKRGX
>
> Thanks
>
> Omkar
>

Okay,

the response is of nginx default page.

If your config is correctly linked, your nginx restart must have
failed complaining that there are two default server block for port
80.

what is the output of
`sudo service nginx restart`?

--
Note:

If you are posting an issue,

1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  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.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAG8U0EkGBb4z5Z_G8aDP47FVGJ%2Bp0tTb_XQ-c3oe9b6_X3oJjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.




Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. 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.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. 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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAOnj–JBUT-4-%2B_WC_GAvMs2G0Z8U0hFchSV1FK5VQgc8Q_Heg%40mail.gmail.com.

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

On Thu, Sep 4, 2014 at 4:20 PM, Omkar Ghatpande
om...@gmail.com wrote:

Hi Pratik,

Update - removed both default files from /nginx/sites-enabled and
/nginx/sites-available. Now I’m able to start/restart nginx properly. I can
also access localhost:82 but again it’ll load with my default site.

Any pointers?

Are you running supervisor or bench start?

On 04-Sep-2014 9:34 pm, "Pratik Vyas" <pd...@gmail.com> wrote:
>
> On Thu, Sep 4, 2014 at 4:20 PM, Omkar Ghatpande
> <om...@gmail.com> wrote:
> > Hi Pratik,
> >
> > Update - removed both default files from /nginx/sites-enabled and
> > /nginx/sites-available. Now I'm able to start/restart nginx properly. I can
> > also access localhost:82 but again it'll load with my default site.
> >
> > Any pointers?
> >
>
> Are you running supervisor or `bench start`?

Using 'bench start'

>
> --
> Note:
>
> If you are posting an issue,
>
> 1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.

> 2. 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.

> 3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email

> 4. 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.

> To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAG8U0EnkYJMGwq_%2B-p7-oFZdhZs3pfzFUO61nGrcbpW03FARZg%40mail.gmail.com.

> For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. 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.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. 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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAOnj–K%3DiMg7TOVjea3ERmzVbGJNqzdqSw2j-3zjqPycXujkHw%40mail.gmail.com.

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

Using ‘bench start’
bench start will always use the default site. Configure supervisor.
It will also start the erpnext service on boot.

Thanks,

Pratik
erpnext

I did the supervisor setup.. and restarted my box. On grep bench, I can see that bench is running.

I assume, Supervisor takes care of application start-up, but now I'm getting a '404 Not Found' while accessing the application. Not able to 'bench start' as well because processes are already running.

Any missing step?

Thanks for all your help Pratik,

Omkar


On Thu, Sep 4, 2014 at 9:48 PM, Pratik Vyas <pd...@gmail.com> wrote:
> Using 'bench start'
`bench start` will always use the default site. Configure supervisor.
It will also start the erpnext service on boot.

https://github.com/frappe/bench#supervisor

Thanks,
--
Pratik
erpnext

--
Note:

If you are posting an issue,

1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. 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.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAG8U0Em%3DkE%3DqrCcRPBxtW87qFeTLiksH_KQqcOL3yTLGKcZGaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. 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.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. 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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAOnj–%2Br3HKvy72AFzpShSUS6n59%3DqRMdxyMi7VSxi4s0P2FGw%40mail.gmail.com.

    For more options, visit https://groups.google.com/d/optout.
Update - Application accessible on 127.0.0.1 (I was trying with localhost.. not sure what's the difference)

So now, how should I access my 2nd site? I'm getting the default one at 127.0.0.1

Thanks,

Omkar


On Fri, Sep 5, 2014 at 2:53 PM, Omkar Ghatpande <om...@gmail.com> wrote:
I did the supervisor setup.. and restarted my box. On grep bench, I can see that bench is running.

I assume, Supervisor takes care of application start-up, but now I'm getting a '404 Not Found' while accessing the application. Not able to 'bench start' as well because processes are already running.

Any missing step?

Thanks for all your help Pratik,

Omkar


On Thu, Sep 4, 2014 at 9:48 PM, Pratik Vyas <pd...@gmail.com> wrote:
> Using 'bench start'
`bench start` will always use the default site. Configure supervisor.
It will also start the erpnext service on boot.

https://github.com/frappe/bench#supervisor

Thanks,
--
Pratik
erpnext

--
Note:

If you are posting an issue,

1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. 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.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAG8U0Em%3DkE%3DqrCcRPBxtW87qFeTLiksH_KQqcOL3yTLGKcZGaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.




Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. 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.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. 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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAOnj–%2BZLbejfPbZ8SKZeFdta%3DHiCD-qcfzSS9hmbtoFAbSjKg%40mail.gmail.com.

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

On Fri, Sep 5, 2014 at 3:08 PM, Omkar Ghatpande
om...@gmail.com wrote:

Update - Application accessible on 127.0.0.1 (I was trying with localhost…
not sure what’s the difference)

So now, how should I access my 2nd site? I’m getting the default one at
127.0.0.1

Thanks,

Omkar

Hi Omkar,

So, port 82 is not accessible?

curl http://127.0.0.1:82/

Thanks,

Pratik

Yup, that did it. Was not accessible before, so reset my port for the 2nd site which is accessible now.

Thanks a lot!

Omkar


On Fri, Sep 5, 2014 at 3:32 PM, Pratik Vyas <pd...@gmail.com> wrote:
On Fri, Sep 5, 2014 at 3:08 PM, Omkar Ghatpande
<om...@gmail.com> wrote:
> Update - Application accessible on 127.0.0.1 (I was trying with localhost..
> not sure what's the difference)
>
> So now, how should I access my 2nd site? I'm getting the default one at
> 127.0.0.1
>
> Thanks,
>
> Omkar

Hi Omkar,

So, port 82 is not accessible?

`curl http://127.0.0.1:82/`

Thanks,
--
Pratik

--
Note:

If you are posting an issue,

1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. 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.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAG8U0EnWB6WiJ7QLLmv%3DVmOHMT3ud7oxFzZ%2BiJv5L_ToCyHTRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. 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.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. 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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAOnj–JD38QtfxY2XpuNj8DWZenv5mL0TmbVov%2BiQES1m894Yw%40mail.gmail.com.

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

On Fri, Sep 5, 2014 at 3:42 PM, Omkar Ghatpande
om...@gmail.com wrote:

Yup, that did it. Was not accessible before, so reset my port for the 2nd
site which is accessible now.

Thanks a lot!

Omkar

Great!

Any changes you recommend for
Multitenant Setup · frappe/bench Wiki · GitHub ?

Thanks,

Pratik
ERPNext

On Fri, Sep 5, 2014 at 5:00 PM, Pratik Vyas <pd...@gmail.com> wrote:
On Fri, Sep 5, 2014 at 3:42 PM, Omkar Ghatpande
<om...@gmail.com> wrote:
> Yup, that did it. Was not accessible before, so reset my port for the 2nd
> site which is accessible now.
>
> Thanks a lot!
>
> Omkar

Great!

Any changes you recommend for
https://github.com/frappe/bench/wiki/Multitenant-Setup ?

2 small points which I think might be helpful for others:

1. In the 2nd section, need to mention - Supervisor setup is required and 2nd site can be accessed at localhost:<port set above>
2. In the 'reload nginx', I had to run 'sudo service nginx reload' on ubuntu. (Correction might be required). Also, need to make sure /nginx/sites-enabled and /nginx/sites-available is empty (was not in my case).

Thanks

Omkar

Thanks,
--
Pratik
ERPNext

--
Note:

If you are posting an issue,

1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. 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.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAG8U0EkOB-ZcXjpqwpLQMaLRbx6jMKkFu__XnAqoBAyUsjenng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. 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.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. 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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAOnj–%2B8XTddTHybFmfFgCk7Fy%2ByfQaTZtta3GJtvx%3DtaA9mYA%40mail.gmail.com.

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