小编pay*_*ora的帖子

无法执行gunicorn_start EACCES

#!/bin/bash

NAME="trueguild"                                          # Name of the applica$
DJANGODIR=/webapps/trueguild_django/trueguild             # Django project dire$
SOCKFILE=/webapps/trueguild_django/run/gunicorn.sock      # we will communicte $
USER=trueguild                                            # the user to run as

GROUP=webapps                                             # the group to run as
NUM_WORKERS=3                                             # how many worker pro$
DJANGO_SETTINGS_MODULE=trueguild.settings                 # which settings file$
DJANGO_WSGI_MODULE=trueguild.wsgi                         # WSGI module name

echo "Starting $NAME as $NAME"

# Activate the virtual environment
cd $DJANGODIR
source ../bin/activate
export DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE
export PYTHONPATH=$DJANGODIR:$PYTHONPATH

# Create the run directory if it doesn't exist
RUNDIR=$(dirname $SOCKFILE)
test -d $RUNDIR …
Run Code Online (Sandbox Code Playgroud)

django nginx supervisord gunicorn

4
推荐指数
1
解决办法
4190
查看次数

如何找到下一个类似的兄弟在dom树中向下移动

我需要的是在dt我想要跳到下一个dt元素的其中一个元素上.我怎样才能做到这一点?

<dl class="accordion">
    <dt>Select Category</dt>
    <dd></dd>

    <dt>select product</dt>
    <dd></dd>
</dl>
Run Code Online (Sandbox Code Playgroud)
(function($) {
    var allPanels = $('.accordion > dd').hide();
    $('.accordion > dd:first-of-type').show();
    $('.accordion > dt:first-of-type').addClass('accordion-active');

    jQuery('.accordion > dt').on('click', function() {
        $this = $(this);
        $target = $this.next(); 
        if (!$this.hasClass('accordion-active')) {
            $this.parent().children('dd').slideUp();
            jQuery('.accordion > dt').removeClass('accordion-active');
            $this.addClass('accordion-active');
            $target.addClass('active').slideDown();
        }    
        return false;
    });
})(jQuery);
Run Code Online (Sandbox Code Playgroud)

jquery

1
推荐指数
1
解决办法
487
查看次数

标签 统计

django ×1

gunicorn ×1

jquery ×1

nginx ×1

supervisord ×1