Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Hodor Web Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Akash Ravi
Hodor Web Backend
Commits
da46cf11
Verified
Commit
da46cf11
authored
7 years ago
by
Sachin Kamath
Browse files
Options
Downloads
Patches
Plain Diff
Add warning of unsafe work environment
Signed-off-by:
Sachin S. Kamath
<
sskamath96@gmail.com
>
parent
4c8f0f48
Branches
develop
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
hodor/__init__.py
+6
-3
6 additions, 3 deletions
hodor/__init__.py
hodor/controllers/user.py
+1
-1
1 addition, 1 deletion
hodor/controllers/user.py
with
7 additions
and
4 deletions
hodor/__init__.py
+
6
−
3
View file @
da46cf11
# -*- coding: utf-8 -*-
# app/__init__.py
import
os
import
sys
import
time
from
termcolor
import
colored
from
flask_api
import
FlaskAPI
from
flask_sqlalchemy
import
SQLAlchemy
...
...
@@ -23,14 +26,14 @@ application.config['SECRET_KEY'] = 'blehblehbleh'
# Delay the application launch to get the user attention if running in
# testing mode
'''
if config_name !=
'
production
'
:
if
config_name
!=
'
production
'
and
not
os
.
getenv
(
'
SKIP_COUNT
'
)
:
for
x
in
range
(
0
,
5
):
sys
.
stdout
.
write
(
colored
(
"
\r
You are not running the server in production mode.
"
+
"
App will run in {} seconds..
"
.
format
(
5
-
x
),
'
red
'
))
sys
.
stdout
.
flush
()
time
.
sleep
(
1
)
'''
print
(
colored
(
"
\n\n
Running app in {} mode..
"
.
format
(
config_name
),
'
yellow
'
))
# This disables the HTML API renderer for flask_api when called through
...
...
This diff is collapsed.
Click to expand it.
hodor/controllers/user.py
+
1
−
1
View file @
da46cf11
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment