gunicorn.conf for supervisor
[program:gunicorn_mxmo]
command=gunicorn -b 127.0.0.1:7999 -w 2 lib.webnotes.app:application
directory=home/apra/mxmo
process_name=%(program_name)s
autostart=True
autorestart=True
redirect_stderr=True
[program:gunicorn_realize]
command=gunicorn -b 127.0.0.1:8000 -w 2 lib.webnotes.app:application
directory=/home/apra/next
user=erpnext
process_name=%(program_name)s
autostart=True
autorestart=True
redirect_stderr=True
[program:gunicorn_demo]
command=gunicorn -b 127.0.0.1:8001 -w 2 lib.webnotes.app:application
directory=/home/apra/demo
process_name=%(program_name)s
autostart=True
autorestart=True
redirect_stderr=True
erpnext-mxmo.conf
upstream erpnextmxmo {
server 127.0.0.1:7999 fail_timeout=0;
}
server {
listen 80;
server_name $hostname;
client_max_body_size 4G;
server_name localhost;
keepalive_timeout 5;
root /home/maxwell/mxmo;
location / {
try_files $uri @magic;
}
location @magic {
proxy_set_header X-Forwaded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://erpnextmxmo;
}
}
erpnext-realize.conf
upstream erpnextrealize {
server 127.0.0.1:8000 fail_timeout=0;
}
server {
listen 8080;
server_name $hostname;
client_max_body_size 4G;
server_name localhost;
keepalive_timeout 5;
root /home/maxwell/next/public;
location / {
try_files $uri @magic;
}
location @magic {
proxy_set_header X-Forwaded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://erpnextrealize;
}
}
erpnext-demo.conf
upstream erpnextdemo { server 127.0.0.1:8001 fail_timeout=0; } server { listen 8081; server_name $hostname; client_max_body_size 4G; server_name localhost; keepalive_timeout 5; root /home/apra/demo; location / { try_files $uri @magic; } location @magic { proxy_set_header X-Forwaded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; proxy_pass http://erpnextdemo; } }
Is this possible? Let's say one for SIT port 8080 and one for production port 8000 with different DB.
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
Listen 80
Listen 8080
NameVirtualHost 172.20.30.40:80
NameVirtualHost 172.20.30.40:8080
<VirtualHost 172.20.30.40:80>
ServerName www.example.com
DocumentRoot /www/domain-80
</VirtualHost>
<VirtualHost 172.20.30.40:8080>
ServerName www.example.com
DocumentRoot /www/domain-8080
</VirtualHost>
<VirtualHost 172.20.30.40:80>
ServerName www.example.org
DocumentRoot /www/otherdomain-80
</VirtualHost>
<VirtualHost 172.20.30.40:8080>
ServerName www.example.org
DocumentRoot /www/otherdomain-8080
</VirtualHost>
This is not enough to achieve it?
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Maxwell,We upgrade our Erpnext 3.x to 4.x, but we can't start both instances into latest release. Can someone explain how to start 2 instance into frappe app?Best Regards
frappe site1 --install dbname1
frappe site2 --install dbname2
cp config/nginx.conf /etc/nginx/conf.d/frappe.conf
cp config/supervisor.conf /etc/supervisor/conf.d/frappe.conf