Problem with deploying in the Promote Stage

I am not sure why my Repl failed to deploy at the promote stage, as it was working when I tested it in Replit.

Could you please take a look at my code and let me know where went wrong? Do I need to specify a local and external host? How do I go about doing so?

Thanks in advance!

Repl link:

Hi @runawaygypsy , welcome to the forums!
Are you trying to run index.js or server.js as the main file?
The former doesn’t work, only the latter starts the webserver, but returns the error ReferenceError: generateFortune is not defined.

1 Like