django 管理多項目(uwsgi啓動)

vim emperor.inigit

[uwsgi]web

emperor = /Users/self/vassvim

master = trueapi

pidfile = /Users/pidfile/emperor.pidapp

daemonize = /Users/self/uwsgi/emperor.logpost

vacuum = trueit

 

 

cd /Users/self/vass ; llast

lrwxr-xr-x  1 mc  admin  73 12  1 16:07 admin.kaoke.me_uwsgi.ini -> /Users/self/git/admin/admin.kaoke.me/kaoke_admin/admin.kaoke.me_uwsgi.inicli

lrwxr-xr-x  1 mc  admin  71 12  1 16:07 app.kaoke.me_uwsgi.ini -> /Users/self/git/app/app.kaoke.me/msgcopy_web_app/app.kaoke.me_uwsgi.iniuwsgi

lrwxr-xr-x  1 mc  admin  67 12  1 16:08 buy.kaoke.me_uwsgi.ini -> /Users/self/git/buy/buy.kaoke.me/msgcopy_buy/buy.kaoke.me_uwsgi.ini

lrwxr-xr-x  1 mc  admin  57 12  1 16:08 m.kaoke.me_uwsgi.ini -> /Users/self/git/m/m.kaoke.me/kaoke_m/m.kaoke.me_uwsgi.ini

lrwxr-xr-x  1 mc  admin  87 12  1 16:09 new-pack.kaoke.me_uwsgi.ini -> /Users/self/git/new-pack/new-pack.kaoke.me/msgcopy_pack_req/new-pack.kaoke.me_uwsgi.ini

lrwxr-xr-x  1 mc  admin  60 12  2 13:26 pack.ini -> /Users/self/git/pack-client/packclient/msgcopy_pack/pack.ini

lrwxr-xr-x  1 mc  admin  69 12  1 16:09 pb.kaoke.me_uwsgi.ini -> /Users/self/git/pb/pb.kaoke.me/msgcopy_postback/pb.kaoke.me_uwsgi.ini

lrwxr-xr-x  1 mc  admin  71 12  1 16:10 web.kaoke.me_uwsgi.ini -> /Users/self/git/web/web.kaoke.me/msgcopy_web_2_0/web.kaoke.me_uwsgi.ini

lrwxr-xr-x  1 mc  admin  68 12  1 16:10 www.kaoke.me_uwsgi.ini -> /Users/self/git/iapi/www.kaoke.me/src/msgcopy/www.kaoke.me_uwsgi.ini

lrwxr-xr-x  1 mc  admin  54 12  1 16:10 x.kaoke.me_uwsgi.ini -> /Users/self/git/x/x.kaoke.me/yt_x/x.kaoke.me_uwsgi.ini

把uwsgi的.ini文件集中到vass文件 (軟連接)

啓動多個項目是 只要啓動   uwsgi --ini emperor.ini 文件便可

關閉多個項目    uwsgi --stop /Users/pidfile/emperor.pid

相關文章
相關標籤/搜索