2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-23 04:29:02 +00:00

[fix] supervisor config for socketio

This commit is contained in:
Anand Doshi 2015-08-17 16:52:40 +05:30
parent cf9a4c0b44
commit f4e868a114
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ directory={{ sites_dir }}
{% if node %}
[program:node-socketio]
command={{ node }} apps/frappe/socketio.js
command={{ node }} {{ bench_dir }}/apps/frappe/socketio.js
autostart=true
autorestart=true
stopsignal=QUIT

View File

@ -128,7 +128,6 @@ def setup_procfile(with_celery_broker=False, with_watch=False, bench='.'):
if with_watch:
procfile_contents['watch'] = "bench watch"
if frappe_version > 5:
procfile_contents['socketio'] = "node apps/frappe/socketio.js"
procfile_contents['socketio'] = "./node_modules/.bin/nodemon apps/frappe/socketio.js"
procfile = '\n'.join(["{0}: {1}".format(k, v) for k, v in procfile_contents.items()])
@ -529,6 +528,7 @@ def post_upgrade(from_ver, to_ver, bench='.'):
if from_ver <= 5 and to_ver == 6:
generate_redis_async_broker_config(bench=bench)
setup_socketio(bench=bench)
print "As you have setup your bench for production, you will have to reload configuration for nginx and supervisor"
print "To complete the migration, please run the following commands"