Skip to content
Snippets Groups Projects
Commit bfce4f27 authored by root's avatar root
Browse files

integrate user-mgmt-ui as submodule and modify coresponding configs

parent b83cbe33
No related branches found
No related tags found
No related merge requests found
...@@ -22,15 +22,15 @@ ...@@ -22,15 +22,15 @@
name: ["pexpect==3.3"] name: ["pexpect==3.3"]
- name: create venv for user-mgmt-ui - name: create venv for user-mgmt-ui
shell: 'python3 -m venv user-mgmt-ui' shell: 'python3 -m venv venv'
args: args:
chdir: '{{playbook_dir}}' chdir: '{{playbook_dir}}/user-mgmt-ui'
warn: no warn: no
- name: install venv packages for user-mgmt-ui - name: install venv packages for user-mgmt-ui
shell: './user-mgmt-ui/bin/python3 -m pip install gunicorn flask flask-wtf email_validator' shell: './venv/bin/python3 -m pip install -r requirements.txt'
args: args:
chdir: '{{playbook_dir}}' chdir: '{{playbook_dir}}/user-mgmt-ui'
warn: no warn: no
- name: create systemd service file for user-mgmt-ui - name: create systemd service file for user-mgmt-ui
......
...@@ -5,7 +5,7 @@ After=syslog.target network.target ...@@ -5,7 +5,7 @@ After=syslog.target network.target
[Service] [Service]
Type=simple Type=simple
ExecStart={{playbook_dir}}/user-mgmt-ui/bin/gunicorn --workers=2 --bind 0.0.0.0:8050 main:app ExecStart={{playbook_dir}}/user-mgmt-ui/venv/bin/gunicorn --workers=2 --bind 0.0.0.0:8050 main:app
User=root User=root
KillMode=process KillMode=process
WorkingDirectory={{playbook_dir}}/user-mgmt-ui WorkingDirectory={{playbook_dir}}/user-mgmt-ui
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment