Development
This commit is contained in:
parent
4b44fdf65a
commit
ce280b6d7a
6 changed files with 20 additions and 6 deletions
|
|
@ -1,6 +1,15 @@
|
|||
import os
|
||||
|
||||
|
||||
def product_name():
|
||||
return os.environ.get('PRODUCT_NAME', 'routlin')
|
||||
|
||||
|
||||
def web_app_display_name():
|
||||
edition = 'Pro' if is_pro() else 'CE'
|
||||
return os.environ.get('WEB_APP_DISPLAY_NAME', f'{product_name().capitalize()}-{edition}')
|
||||
|
||||
|
||||
def is_production():
|
||||
return not os.environ.get('DEV_MODE', '').lower() in ('1', 'true', 'yes')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue