You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
New to wasp lang dev. I've created a project which I am running using "wasp start" on my development box, and it comes up at localhost:3000. It's been working great, and I've made great progress quickly using this framework/DSL!
When I deploy on my server, I am running behind apache2 as a reverse proxy. I'm testing by running "wasp start" from a terminal window. I can confirm when the wasp server is not running, accessing through apache at the bound domain is returning Service Unavailable. When I am running it, none of my application routes are there, and loading the root route ("/") returns the text "Hello world".
I can confirm in the source directory, on both the Ubuntu server and my Mac that there is a file at .wasp/out/server/bundle/server.js that has a "/" route that returns "Hello world". This is not present in my apps source code, at all. I have confirmed on the Ubuntu server that if I change this string to "WTF", then when I load the root route in a browser pointed to this apache configuration, I get a web page that says "WTF". This tracks with what I am feeling right now, but at least I know what file is serving this route.
Note: I was running it on the default port, 3000, when I got this weird route, I modified the PORT by assigning it in the .env.server file in the server's app's root directory (to see if anything changed), and, the server obliged by changing ports, and this didn't change the behavior of getting routes served from this .wasp/out/server/bundle/server.js. I am unable to see any of my apps routes running on this Linux server. So it's consistent.
Note: If I do a "sudo ufw enable 6500/tcp" (I'm running on port 6500), loading http://99.99.99.99:6500 returns this "Hello world" route, or "WTF" depending if I've edited that server.js file. (Replace 99.99.99.99 with my IP address obviously)
What is causing the wasp app to route everything to this "server.js" on the production box, and why does it not do so on my development box?
To Reproduce
Steps to reproduce the behavior:
Go to an ubuntu server in the cloud
Do a git clone of my project
cd into the project, npm install and wasp start
Run an apache2 reverse proxy script and point it at the wasp server
Expected behavior
To see my application running on the Ubuntu box, not this "Hello world" route
Additional context
Apache config is incredibly thin, and I note that certbot is failing and cant create a cert. This seems salient.
Describe the bug
New to wasp lang dev. I've created a project which I am running using "wasp start" on my development box, and it comes up at localhost:3000. It's been working great, and I've made great progress quickly using this framework/DSL!
When I deploy on my server, I am running behind apache2 as a reverse proxy. I'm testing by running "wasp start" from a terminal window. I can confirm when the wasp server is not running, accessing through apache at the bound domain is returning Service Unavailable. When I am running it, none of my application routes are there, and loading the root route ("/") returns the text "Hello world".
I can confirm in the source directory, on both the Ubuntu server and my Mac that there is a file at .wasp/out/server/bundle/server.js that has a "/" route that returns "Hello world". This is not present in my apps source code, at all. I have confirmed on the Ubuntu server that if I change this string to "WTF", then when I load the root route in a browser pointed to this apache configuration, I get a web page that says "WTF". This tracks with what I am feeling right now, but at least I know what file is serving this route.
Note: I was running it on the default port, 3000, when I got this weird route, I modified the PORT by assigning it in the .env.server file in the server's app's root directory (to see if anything changed), and, the server obliged by changing ports, and this didn't change the behavior of getting routes served from this .wasp/out/server/bundle/server.js. I am unable to see any of my apps routes running on this Linux server. So it's consistent.
Note: If I do a "sudo ufw enable 6500/tcp" (I'm running on port 6500), loading http://99.99.99.99:6500 returns this "Hello world" route, or "WTF" depending if I've edited that server.js file. (Replace 99.99.99.99 with my IP address obviously)
What is causing the wasp app to route everything to this "server.js" on the production box, and why does it not do so on my development box?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
To see my application running on the Ubuntu box, not this "Hello world" route
Additional context
Apache config is incredibly thin, and I note that certbot is failing and cant create a cert. This seems salient.
Certbot fails to install a cert for this, claiming:
Could not reverse map the HTTPS VirtualHost to the original
The text was updated successfully, but these errors were encountered: