Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Revert "fix(controller): disable web UI"
Browse files Browse the repository at this point in the history
This reverts commit eb68a1d.
  • Loading branch information
Matthew Fisher committed Jun 16, 2014
1 parent 58bb632 commit c9964d9
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 14 deletions.
4 changes: 2 additions & 2 deletions controller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ full-clean: clean
$(call ssh_all,'sudo docker rmi deis/controller')

test:
python manage.py test --noinput api
python manage.py test --noinput api web

runserver:
python manage.py runserver
Expand All @@ -40,7 +40,7 @@ db:
python manage.py syncdb --migrate --noinput

coverage:
coverage run manage.py test --noinput api
coverage run manage.py test --noinput api web
coverage html

flake8:
Expand Down
1 change: 0 additions & 1 deletion controller/bin/boot
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ etcd_safe_set protocol ${DEIS_PROTOCOL:-http}
etcd_safe_set secretKey ${DEIS_SECRET_KEY:-`openssl rand -base64 64 | tr -d '\n'`}
etcd_safe_set builderKey ${DEIS_BUILDER_KEY:-`openssl rand -base64 64 | tr -d '\n'`}
etcd_safe_set registrationEnabled 1
etcd_safe_set webEnabled 0

# wait for confd to run once and install initial templates
until confd -onetime -node $ETCD -config-file /app/confd.toml 2>/dev/null; do
Expand Down
3 changes: 0 additions & 3 deletions controller/deis/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,6 @@
# check if we can register users with `deis register`
REGISTRATION_ENABLED = True

# check if we should enable the web UI module
WEB_ENABLED = False

# default to sqlite3, but allow postgresql config through envvars
DATABASES = {
'default': {
Expand Down
5 changes: 1 addition & 4 deletions controller/deis/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from __future__ import unicode_literals

from django.conf import settings
from django.conf.urls import patterns, include, url
from django.contrib import admin

Expand All @@ -20,7 +19,5 @@
url(r'^accounts/', include('allauth.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^api/', include('api.urls')),
url(r'^', include('web.urls')),
)

if settings.WEB_ENABLED:
urlpatterns += patterns('', url(r'^', include('web.urls')))
4 changes: 0 additions & 4 deletions controller/templates/confd_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,3 @@
{{ if .deis_controller_registrationEnabled }}
REGISTRATION_ENABLED = bool({{ .deis_controller_registrationEnabled }})
{{ end }}

{{ if .deis_controller_webEnabled }}
WEB_ENABLED = bool({{ .deis_controller_webEnabled }})
{{ end }}

0 comments on commit c9964d9

Please sign in to comment.