Skip to content

Instantly share code, notes, and snippets.

@liveashish
Last active September 27, 2017 02:21
Show Gist options
  • Save liveashish/ba51fea40f4af7df00c04ee9f9e160e5 to your computer and use it in GitHub Desktop.
Save liveashish/ba51fea40f4af7df00c04ee9f9e160e5 to your computer and use it in GitHub Desktop.

Revisions

  1. liveashish revised this gist Sep 27, 2017. 1 changed file with 8 additions and 6 deletions.
    14 changes: 8 additions & 6 deletions start_gunicorn_ds.sh
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,20 @@
    echo "APPNAME: $APPNAME"
    APPDIR=/home/ubuntu/$APPNAME/
    PROJECTNAME=teamwork
    APPNAME=worktogether
    PROJECTDIR=/home/ubuntu/$PROJECTNAME/

    LOGFILE=$APPDIR'gunicorn.log'
    ERRORFILE=$APPFIR'gunicorn-error.log'
    LOGFILE=$PROJECTDIR'log/gunicorn.log'
    ERRORFILE=$PROJECTDIR'log/gunicorn-error.log'

    NUM_WORKERS=3

    ADDRESS=127.0.0.1:8000

    cd $APPDIR
    cd $PROJECTDIR

    #source ~/.bashrc
    #workon $APPNAME

    exec gunicorn $APPNAME.wsgi:application \
    -w $NUM_WORKERS --bind=$ADDRESS \
    --log-level=debug &
    --log-level=debug \
    --log-file=$LOGFILE 2>>$LOGFILE 1>>$ERRORFILE &
  2. liveashish revised this gist Sep 20, 2017. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions start_gunicorn_ds.sh
    Original file line number Diff line number Diff line change
    @@ -15,5 +15,4 @@ cd $APPDIR

    exec gunicorn $APPNAME.wsgi:application \
    -w $NUM_WORKERS --bind=$ADDRESS \
    --log-level=debug \
    --log-file=$LOGFILE 2>>$LOGFILE 1>>$ERRORFILE &
    --log-level=debug &
  3. liveashish revised this gist Sep 20, 2017. No changes.
  4. liveashish revised this gist Sep 20, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions start_gunicorn_ds.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    echo "APPNAME: $APPNAME"
    APPDIR=/home/ubuntu/$APPNAME/

    LOGFILE=$APPDIR'gunicorn.log'
  5. liveashish created this gist Sep 20, 2017.
    18 changes: 18 additions & 0 deletions start_gunicorn_ds.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    APPDIR=/home/ubuntu/$APPNAME/

    LOGFILE=$APPDIR'gunicorn.log'
    ERRORFILE=$APPFIR'gunicorn-error.log'

    NUM_WORKERS=3

    ADDRESS=127.0.0.1:8000

    cd $APPDIR

    #source ~/.bashrc
    #workon $APPNAME

    exec gunicorn $APPNAME.wsgi:application \
    -w $NUM_WORKERS --bind=$ADDRESS \
    --log-level=debug \
    --log-file=$LOGFILE 2>>$LOGFILE 1>>$ERRORFILE &