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(bp)
app.register_blueprint(workspace_routes) app.register_blueprint(workspace_routes)
app.register_blueprint(requests_bp) app.register_blueprint(requests_bp)
if ENV != "production": if ENV != "prod":
app.register_blueprint(dev_routes) app.register_blueprint(dev_routes)
apply_authentication(app) apply_authentication(app)

View File

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

View File

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