# get value from environment variable port # if not set, use default value 9990 # export port to environment variable SD_UI_BIND_PORT # so that it can be used by other scripts # export SD_UI_BIND_PORT=${PORT:-9990}