use "prod" for production environment

This commit is contained in:
dandds 2018-08-08 09:41:42 -04:00
parent ee8f37a862
commit cf9fc7efbc
3 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ def make_app(config):
app.register_blueprint(bp)
app.register_blueprint(workspace_routes)
app.register_blueprint(requests_bp)
if ENV != "production":
if ENV != "prod":
app.register_blueprint(dev_routes)
apply_authentication(app)

View File

@ -10,7 +10,7 @@ mkdir -p crl
rsync -rq crl-tmp/. crl/.
rm -rf crl-tmp
if [[ $FLASK_ENV != "production" ]]; then
if [[ $FLASK_ENV != "prod" ]]; then
# place our test CRL there
cp ssl/client-certs/client-ca.der.crl crl/
fi

View File

@ -9,7 +9,7 @@ echo "Resetting CA bundle..."
rm ssl/server-certs/ca-chain.pem &> /dev/null || true
touch $CA_CHAIN
if [[ $FLASK_ENV != "production" ]]; then
if [[ $FLASK_ENV != "prod" ]]; then
# only for testing and development
echo "Copy in testing client CA..."
cat ssl/client-certs/client-ca.crt >> $CA_CHAIN