https://github.com/NVIDIA/DIGITS
Revision 88666fa7061dd0ade9f6a0d6f13f7078a3507f75 authored by Luke Yeager on 26 September 2016, 21:07:46 UTC, committed by GitHub on 26 September 2016, 21:07:46 UTC
Move image gradient extensions to plug-in area
Tip revision: 88666fa7061dd0ade9f6a0d6f13f7078a3507f75 authored by Luke Yeager on 26 September 2016, 21:07:46 UTC
Merge pull request #947 from gheinrich/dev/gradients-plugin
Merge pull request #947 from gheinrich/dev/gradients-plugin
Tip revision: 88666fa
digits-server
#!/bin/bash
# Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
set -e
function set_exe {
# Sets a global variable to the location of an executable
# Arguments:
# $1 -- the variable name
# $2 -- the executable
# Check to make sure the executable exists
hash $2 2>/dev/null || { echo >&2 "ERROR: \"$2\" executable not found!"; exit 1; }
# Print the path to the executable
local __resultvar=$1
eval $__resultvar="'$(command -v $2)'"
}
# Some hacking necessary to respect virtualenv installations
set_exe PYTHON_EXE python2
set_exe GUNICORN_EXE gunicorn
GUNICORN_CONFIG=`python -c 'import digits,os.path;print os.path.dirname(os.path.abspath(digits.__file__))'`/gunicorn_config.py
$PYTHON_EXE $GUNICORN_EXE \
--config $GUNICORN_CONFIG \
digits.webapp:app \
$@
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...