Fixed webui reload problem in dev environment (moved webui.py out of ostack_validator directory)
This commit is contained in:
parent
a4ab1fe233
commit
38ebe77208
@ -11,7 +11,7 @@ end
|
|||||||
|
|
||||||
bash 'Run application' do
|
bash 'Run application' do
|
||||||
code <<-EOS
|
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
|
echo "worker: celery worker --app=ostack_validator.celery:app" >> ProcfileHonchoLocal
|
||||||
if ! tmux has-session -t dev; then
|
if ! tmux has-session -t dev; then
|
||||||
tmux new-session -d -s dev "honcho -f ProcfileHonchoLocal start"
|
tmux new-session -d -s dev "honcho -f ProcfileHonchoLocal start"
|
||||||
|
@ -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.common import Issue, MarkedIssue
|
||||||
from ostack_validator.model import Openstack
|
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)
|
Bootstrap(app)
|
||||||
app.debug = True
|
app.debug = True
|
||||||
app.config.update(
|
app.config.update(
|
||||||
@ -267,4 +267,4 @@ def job(id):
|
|||||||
return render_template('validation_state.html', state=job.state)
|
return render_template('validation_state.html', state=job.state)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(host='0.0.0.0', debug=True)
|
app.run(host='0.0.0.0', port=8000, debug=True)
|
Loading…
x
Reference in New Issue
Block a user