Run ErpNext as Background Process

145 views
Skip to first unread message

Faisal Nadeem

unread,
Feb 25, 2014, 12:55:06 AM2/25/14
to erpnext-dev...@googlegroups.com

How to run "/lib/wnf.py" as background process? 

Because when i write "/lib/wnf.py" , server successfully started and application is running fine. But when i exit the ssh, application stops working.

Please suggesgt any solution.


Specificaitons:

Centos (6.4 Final) VPS.

Pratik Vyas

unread,
Feb 25, 2014, 1:00:51 AM2/25/14
to erpnext-dev...@googlegroups.com
On Tue, Feb 25, 2014 at 11:25 AM, Faisal Nadeem <fais...@gmail.com> wrote:
> How to run "/lib/wnf.py" as background process?
>
> Because when i write "/lib/wnf.py" , server successfully started and
> application is running fine. But when i exit the ssh, application stops
> working.
>
> Please suggesgt any solution.
>
If you want to do that, you might want to do all the production
deployment setup,
https://github.com/frappe/erpnext/wiki/WSGI-Production-Deployment

You could also start the development server in a screen
(http://en.wikipedia.org/wiki/GNU_Screen) (not recommended for
production use) or you could just run gunicorn in daemon mode (but
will have to do the process management youself, ie send HUP to restart
and TERM to stop).
>
> Specificaitons:
>
> Centos (6.4 Final) VPS.
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/549de518-cfbc-46c6-9ce4-1512435d335b%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Pratik
erpnext

Faisal Nadeem

unread,
Feb 27, 2014, 3:39:09 AM2/27/14
to erpnext-dev...@googlegroups.com
Dear i can run in deamon mode now.
But let me explain my problem:

I have VPS with one dedicated IP and i want to map sub domain to my ErpNext. And i can achieve it when my application is running under apache. Because when i create subdomain from my Plesk Control Panel, it accepts only document root path.

So please guide me to run my ErpNext under apache as i was running old ErpNext version.
Reply all
Reply to author
Forward
0 new messages