Change the html filename to index.html

My project is called rocksTruck the unit is Unit7.pas and the html is rocksTruck.hml. In the release folder I get rocksTruck.hml Unit7.html rocksTruck.js.

When uploading to server I have to change the app to index.html manually. How do I get the app to generate index.html

Just use usual F2 to rename under Delphi IDE.

I get [Fatal Error] The project html file D:\techy\rockJobs\rocksTruck\rocksTruck.html is missing

Normally it should automatically rename it inside the project file too. but if not use project options to change html file name to index.html

Do you still get that error now after this?

I have cleared the release folder. When I run I get
index.html

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta content="width=device-width, initial-scale=1" name="viewport"/>
    <meta />
    <noscript>Your browser does not support JavaScript!</noscript>
    <link href="data:;base64,=" rel="icon"/>
    
    <title>TMS Web Project</title>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" type="text/javascript"></script>
    <link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"/>
    <script src="rocksTruck.js" type="text/javascript"></script>
    <style>
    </style>
  </head>
  <body>
<meta />
  </body>
  <script type="text/javascript">rtl.run();</script>
</html>

unit7.html

<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title>Rocks Truck</title>
    <style>
    </style>
  </head>
  <body>
  </body>
</html>


and

rocksTruck.js

The page in the browser is blank.

What does the browser console tell you?

Failed to load resource: the server responded with a status of 503 (Service Unavailable)

What is the server and is it properly configured?

This is local. All working until I tried to change to use index.html

It doesn't tell what exact resource it fails to load?

Seems like a server issue. Is index.html loaded at all in the browser? I suspect not.

I changed the file back to the original name and all works fine.