Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COThanks for replying, @Strat. I did go through that entire page while creating my app and have referred to it often. Your key point is that _"heroku isn't a standard web server for static pages (like Apache or nginx or whatever)._" This is the heart of the matter, and I am more and more convinced that my `index.html` isn't being loaded (and the initial browser `GET` fails) because I am not doing anything to serve that file, and Heroku won't do it for me out of the box; I need to create a basic server that responds to a `GET /` by loading the `index.html` and sending back. Then it should work.
      singulars
    2. COI actually did take a look at the github you referenced, and app.js is a valid nodejs app that should serve static files - you just need a package.json file and Procfile (only need one line: node app.js) that will tell Heroku to build this package (since you are using libraries such as express) and launch app.js, which then you should be able to retrieve your static files like index.html. The instructions for that should be on the heroku page as well. Without that stuff, heroku has no idea what to do with the bulk of code you send it. Hope it helps!
      singulars
    3. COHey @Strat - thank you again. Yep, I had both the `package.json` and `Procfile`s, and it was built fine. The problem was that the browser was issuing a `GET` but nothing in the app was serving the page. Once I added a `app.use(express.static(__dirname)...)`, all was well - a page was being served, the 404 went away, and the app worked. So thanks for taking the time to reply - as you see, you were the only one. Cheers....
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload