aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/dash/app/config.py
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2022-03-01 14:10:13 +0100
committerPeter Mikus <pmikus@cisco.com>2022-03-16 15:06:29 +0000
commitf23e41dfe33972b5ccfcfa7f192f7865f7479f9c (patch)
treeb17b9d7e99d40256814a4ff8bcc31b68637c8311 /resources/tools/dash/app/config.py
parent646c242bfaea75db747df8c178c050499994c789 (diff)
feat(dash): Terraform AWS Beanstalk
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: Ib89677de3818b46aa622f56f28b7bbb54458dbe0
Diffstat (limited to 'resources/tools/dash/app/config.py')
-rw-r--r--resources/tools/dash/app/config.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/resources/tools/dash/app/config.py b/resources/tools/dash/app/config.py
index 55f92cc36b..76f66419a7 100644
--- a/resources/tools/dash/app/config.py
+++ b/resources/tools/dash/app/config.py
@@ -13,24 +13,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from os import environ
-
-
class Config:
"""Flask configuration variables.
"""
# General Config
- FLASK_APP = environ.get("FLASK_APP")
- FLASK_ENV = environ.get("FLASK_ENV")
- SECRET_KEY = environ.get("SECRET_KEY")
+ FLASK_APP = "wsgi.py"
+ FLASK_ENV = "production"
# Assets
- LESS_BIN = environ.get("LESS_BIN")
- ASSETS_DEBUG = environ.get("ASSETS_DEBUG")
- LESS_RUN_IN_DEBUG = environ.get("LESS_RUN_IN_DEBUG")
+ LESS_BIN = "/usr/local/bin/lessc"
+ ASSETS_DEBUG = "False"
+ LESS_RUN_IN_DEBUG = "False"
# Static Assets
STATIC_FOLDER = "static"
TEMPLATES_FOLDER = "templates"
- COMPRESSOR_DEBUG = environ.get("COMPRESSOR_DEBUG")
+ COMPRESSOR_DEBUG ="True"