Skip to content

Commit

Permalink
fix: copying admin-ui to apache html dir
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Jan 1, 2022
1 parent 05fcbcf commit 932dca5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup_app/installers/config_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,9 @@ def install_admin_ui_frontend(self):
run_cmd = '{} {}'.format(cmd_path, cmd)
self.run(['/bin/su', 'node','-c', run_cmd], source_dir)

self.run(['cp', '-r', '-f', os.path.join(source_dir, 'dist'), '/var/www/html/admin'])
admin_ui_path = '/var/www/html/admin'

if not os.path.exists(admin_ui_path):
os.makedirs(admin_ui_path)

self.run(['cp', '-r', '-f', os.path.join(source_dir, 'dist/*'), '/var/www/html/admin'])

0 comments on commit 932dca5

Please sign in to comment.