diff --git a/vagrant/cookbooks/openstack-validator/recipes/default.rb b/vagrant/cookbooks/openstack-validator/recipes/default.rb index 40e3e55..8c870d5 100644 --- a/vagrant/cookbooks/openstack-validator/recipes/default.rb +++ b/vagrant/cookbooks/openstack-validator/recipes/default.rb @@ -11,7 +11,7 @@ end bash 'Run application' do code <<-EOS - echo "webui: gunicorn --log-level debug ostack_validator.webui:app --bind 0.0.0.0:8000" > ProcfileHonchoLocal + echo "webui: python webui.py" > ProcfileHonchoLocal echo "worker: celery worker --app=ostack_validator.celery:app" >> ProcfileHonchoLocal if ! tmux has-session -t dev; then tmux new-session -d -s dev "honcho -f ProcfileHonchoLocal start" diff --git a/ostack_validator/webui.py b/webui.py similarity index 98% rename from ostack_validator/webui.py rename to webui.py index b0ad76e..f535d53 100644 --- a/ostack_validator/webui.py +++ b/webui.py @@ -13,7 +13,7 @@ from ostack_validator.celery import app as celery, ostack_inspect_task, Inspecti from ostack_validator.common import Issue, MarkedIssue from ostack_validator.model import Openstack -app = Flask(__name__, static_folder='../config-validator-ui-concept', static_url_path='/static') +app = Flask(__name__, static_folder='config-validator-ui-concept', static_url_path='/static') Bootstrap(app) app.debug = True app.config.update( @@ -267,4 +267,4 @@ def job(id): return render_template('validation_state.html', state=job.state) if __name__ == '__main__': - app.run(host='0.0.0.0', debug=True) + app.run(host='0.0.0.0', port=8000, debug=True)