Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
726bbba3
Commit
726bbba3
authored
Jun 22, 2016
by
Ryan Herbert
Browse files
admin.py added current git revision to admin index
parent
a2f34046
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/controllers/admin.py
View file @
726bbba3
...
...
@@ -19,11 +19,15 @@ def index():
p
=
subprocess
.
Popen
([
"df"
,
"-h"
],
stdout
=
subprocess
.
PIPE
)
disk_use
,
err
=
p
.
communicate
()
p
=
subprocess
.
Popen
([
"git"
,
"rev-parse"
,
"HEAD"
],
stdout
=
subprocess
.
PIPE
)
revision
,
err
=
p
.
communicate
()
d
=
monitor
()
return
dict
(
d
,
uptime
=
uptime
,
disk_use
=
disk_use
disk_use
=
disk_use
,
revision
=
revision
,
)
...
...
server/web2py/applications/vidjil/views/admin/index.html
View file @
726bbba3
...
...
@@ -48,6 +48,7 @@
Server status
<div
class=
"console-div"
>
<div
class=
"console-flex"
>
{{=uptime}}
</div>
<div
class=
"console-flex"
>
revision: {{=revision}}
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment