Exemplo n.º 1
0
def status():
    """
    Query the status of an application using supervisord.
    """

    require("project_name")

    utils.supervisorctl("status", "play2-%s" % env.project_name)
Exemplo n.º 2
0
def start_play():
    """
    Start the play application.
    """

    require("project_name")

    utils.supervisorctl("start", "play2-%s" % env.project_name)
Exemplo n.º 3
0
def stop_play():
    """
    Stop the currently running play application.
    """

    require("project_name")

    utils.supervisorctl("stop", "play2-%s" % env.project_name)
Exemplo n.º 4
0
def restart():
    """
    Restart the application using supervisord.
    """

    require("project_name")

    utils.supervisorctl("restart", "play2-%s" % env.project_name)