コード例 #1
0
def stop_supervisord():
    """
    Restarts supervisord
    """
    with virtualenv():
        config_file = os.path.join(env.confs, 'supervisord.conf')
        env.run('supervisorctl -c %s shutdown' % config_file)
コード例 #2
0
def start_supervisord():
    """
    Starts supervisord
    """
    with virtualenv():
        config_file = os.path.join(env.confs, 'supervisord.conf')
        env.run('supervisord -c %s' % config_file)
コード例 #3
0
def supervisorctl(action, process):
    """
    Performs the action on the process, e.g. supervisorctl start uwsgi.
    """
    with virtualenv():
        config_file = os.path.join(env.confs, 'supervisord.conf')
        env.run('supervisorctl -c %s %s %s' % (config_file, action, process))
コード例 #4
0
ファイル: django.py プロジェクト: LucianU/django-startproject
def collectstatic():
    """
    Runs collectstatic
    """
    with virtualenv():
        django_settings = 'DJANGO_SETTINGS_MODULE=%s' % env.settings
        env.run('%s ./manage.py collectstatic --noinput' % django_settings)
コード例 #5
0
ファイル: django.py プロジェクト: LucianU/django-startproject
def syncdb():
    """
    Runs syncdb (along with any pending south migrations)
    """
    with virtualenv():
        django_settings = 'DJANGO_SETTINGS_MODULE=%s' % env.settings
        env.run('%s ./manage.py syncdb --noinput' % django_settings)
コード例 #6
0
def update_reqs():
    """
    Makes sure all packages listed in requirements are installed
    """
    with virtualenv():
        env.run('pip install -r %s' % env.requirements)