Uploaded image for project: 'Airavata'
  1. Airavata
  2. AIRAVATA-3585

remove_old_js_css_files.py fails for React generated files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Django Portal
    • None

    Description

      The script is looking for files in the pattern

      [name].[checksum].[ext]
      

      But the React generated files from the https://github.com/cseseniordesign/rna-nanostructures Django app produces files of the pattern

      [name].[checksum].chunk.[ext]
      

      The regex needs to be updated accordingly

      Error message:

      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
      

      Attachments

        Activity

          People

            marcuschristie Marcus Christie
            marcuschristie Marcus Christie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: