You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "Marcus Christie (Jira)" <ji...@apache.org> on 2022/02/28 22:18:00 UTC
[jira] [Created] (AIRAVATA-3585) remove_old_js_css_files.py fails for React generated files
Marcus Christie created AIRAVATA-3585:
-----------------------------------------
Summary: remove_old_js_css_files.py fails for React generated files
Key: AIRAVATA-3585
URL: https://issues.apache.org/jira/browse/AIRAVATA-3585
Project: Airavata
Issue Type: Bug
Components: Django Portal
Reporter: Marcus Christie
Assignee: Marcus Christie
The script is looking for files in the pattern
{code}
[name].[checksum].[ext]
{code}
But the React generated files from the https://github.com/cseseniordesign/rna-nanostructures Django app produces files of the pattern
{code}
[name].[checksum].chunk.[ext]
{code}
The regex needs to be updated accordingly
Error message:
{code}
fatal: [rnamake]: FAILED! => {
"changed": true,
"cmd": [
"/usr/local/bin/remove_old_js_css_files.py",
"-b",
"/var/www/portals/django-rnamake/static"
],
"delta": "0:00:00.105918",
"end": "2022-02-28 22:07:38.080826",
"failed": true,
"rc": 1,
"start": "2022-02-28 22:07:37.974908"
}
STDERR:
Traceback (most recent call last):
File "/usr/local/bin/remove_old_js_css_files.py", line 46, in <module>
raise Exception(f"Regex failed on filename {filename} in {root}")
Exception: Regex failed on filename main.bbfe2914.chunk.css in /var/www/portals/django-rnamake/static/hcc_rnamake_portal/dist
{code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)