Hello everyone! Thanks in advance to anyone who can shine some light on this issue I’m currently facing.
After deployment of my project from git and running the proper commands, everything builds properly, but the problem comes when it’s time to serve. Using npx frontity serve definitely starts the server, but on the browser there is a 403 Forbidden which you can see here at this development URL: http://phpstack-208423-1967475.cloudwaysapps.com/
I’m wondering, is there anything specifically that I need to do regarding deployment on Cloudways? I know there is no htaccess at the root, does this need to happen? If so, how is that done?
So I made another discovery during this journey - turns out port 3000 on Cloudways is not open for inbound traffic. Just for historical purposes, here is my chat log with support:
events.js:292 throw er; // Unhandled ‘error’ event ^ Error: listen EADDRINUSE: address already in use :::3000 at Server.setupListenHandle [as _listen2] (net.js:1318:16) at listenInCluster (net.js:1366:12)
Please configure the application to listen to port 80/443 instead of 3000
The port 3000 is not open for inbound traffic. We can can it from port 80 and then internally redirect to port 3000 which I have already set up for you
All you need to do is make app run on port 80 instead of 3000
So I’m currently researching how to do this, but if anyone has any experience telling Frontity to run on port 80, I’m all ears! Thanks in advance!
And make sure that Apache/nginx are not running on port 80/443, otherwise they’ll conflict with each other. Unless, as suggested before, you use them as a proxy to your Frontity server.