Commit e0adcb18 authored by Adam Fekete's avatar Adam Fekete
Browse files

debug flags improvement

parent c6a25c77
......@@ -31,8 +31,7 @@ module.exports = function(config, models, cmds) {
var app = express();
const env = process.env["NODE_ENV"] || 'development'
if (env === 'development' || env === 'localSetup') {
if (config.app.debug) {
// only use in development
app.use(errorHandler())
app.use(morgan('combined'));
......
......@@ -15,6 +15,7 @@ app: {
baseReplacements: {
nomadRoot: "/nomad/nomadlab"
}
debug: false
}
mongoDb: {
url: "mongodb://notebook-info-db-mongodb/filedatabase"
......
......@@ -5,6 +5,7 @@
cert: "web-certs/cert.pem"
}
frontendAddr: "https://labdev-nomad.esc.rzg.mpg.de"
debug: true
}
passport: {
strategy: "saml"
......
......@@ -21,4 +21,5 @@ app: {
baseReplacements: {
nomadRoot: "/hosthome/mohamed/nomadlab"
}
debug: true
}
......@@ -50,7 +50,7 @@ do
chownRoot=$1
;;
*)
echo "usage: $0 [--debug] [--tls] [--nomad-root <pathToNomadRoot>] [--chown-root <pathForPrometheusVolumes>] [--env <NODE_ENV_VALUE>] [--docker-only] [--docker-skip] [--target-hostname hostname] [--always-pull]"
echo "usage: $0 [--debug] [--tls] [--nomad-root <pathToNomadRoot>] [--chown-root <pathForPrometheusVolumes>] [--env <NODE_ENV_VALUE>] [--docker-only] [--docker-skip] [--target-hostname hostname] [--secret-web-certs <secretName>] [--always-pull]"
echo
echo "Env variables: NODE_ENV, target_hostname, nomadRoot"
echo "Examples:"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment