Setting up new site

26 views
Skip to first unread message

saurabh palande

unread,
Sep 9, 2014, 1:14:58 AM9/9/14
to erpnext-dev...@googlegroups.com
Hello,


System is already in multi-tenancy. I want to setup new site on this system.
Please let me know whether following steps are good enough to setup a site.

Note : Logged in as root user and then switched to user erpnext :- su erpnext

Step 1: Activate environment :- source env/bin/activate

Step 2: Create new Site :- bench new-site fx.xbs360.com

Step 3: Add entry to nginx under /etc/nginx/conf.d/frappe.conf

Step 4: Reload gunicorn and nginx
 
Thank You,

Pratik Vyas

unread,
Sep 9, 2014, 2:08:27 AM9/9/14
to erpnext-dev...@googlegroups.com
No need to activate environment,

Steps:

* Login as erpnext/frappe user
* cd ~/frappe-bench
* `bench new-site abcd.example.com`
* `bench setup nginx` #re generate nginx config

As root, reload nginx

service nginx reload

Thanks,
--
Pratik
erpnext

Saurabh Palande

unread,
Sep 9, 2014, 3:16:53 AM9/9/14
to erpnext-dev...@googlegroups.com
Hi,

After executing the set of instructions, I am getting error showing 404

Regards,


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAG8U0Em4ksQ%2Bk9APU5-%3DDWLxYMKQMiLz_qZCtczjJhA7v-F8fA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
S.S.Palande

Omkar Ghatpande

unread,
Sep 9, 2014, 3:26:42 AM9/9/14
to erpnext-developer-forum

Check if nginx is running otherwise you'll have to restart it manually.

ps -ef|grep nginx
sudo service nginx restart

Hope this helps,

Omkar

Pratik Vyas

unread,
Sep 9, 2014, 3:33:32 AM9/9/14
to erpnext-dev...@googlegroups.com
On Tue, Sep 9, 2014 at 12:46 PM, Saurabh Palande <saura...@gmail.com> wrote:
> Hi,
>
> After executing the set of instructions, I am getting error showing 404
>

Was a bug in the nginx template, fixed.

Saurabh Palande

unread,
Sep 9, 2014, 3:47:16 AM9/9/14
to erpnext-dev...@googlegroups.com
Hi Pratik, 

Should I need to execute `bench update --bench` to fetch these fixes or `bench update --pull`?

Thanks,

--
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...@googlegroups.com.

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



--
S.S.Palande
Reply all
Reply to author
Forward
0 new messages