Outseek
WWasp
•Created by Outseek on 11/6/2024 in #🙋questions
Port error when deploying with Fly
Okay Ill try to set all the env vars and tehn see if that fixes it!
22 replies
WWasp
•Created by Outseek on 11/6/2024 in #🙋questions
Port error when deploying with Fly
@NEROX
22 replies
WWasp
•Created by Outseek on 11/6/2024 in #🙋questions
Port error when deploying with Fly
Okay and the variables you are reffering to those in the ENV file?
22 replies
WWasp
•Created by Outseek on 11/6/2024 in #🙋questions
Port error when deploying with Fly
Also I have never deployed it successfully. Only the client and database work not the server
22 replies
WWasp
•Created by Outseek on 11/6/2024 in #🙋questions
Port error when deploying with Fly
Do all of them NEED to be set. Seems like an unrelated issue becuase the sever is not even connected
22 replies
WWasp
•Created by Outseek on 11/6/2024 in #🙋questions
Port error when deploying with Fly
Yes there are errors in the fly logs. I did not modify the toml in any way. I even created a new fly account and tried to get it to work. here are the logs.
2024-11-06T14:12:12.744 runner[0801ed9a641e98] mia [info] Machine started in 13.39s
2024-11-06T14:12:13.380 app[56830de2f22798] mia [info] INFO Starting init (commit: 74e923d)...
2024-11-06T14:12:14.022 proxy[0801ed9a641e98] mia [error] [PC01] instance refused connection. is your app listening on 0.0.0.0:3000? make sure it is not only listening on 127.0.0.1 (hint: look at your startup logs, servers often print the address they are listening on)
TOML file
fly.toml app configuration file generated for basebuddyapp-server on 2024-11-05T21:32:20-05:00
See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = 'basebuddyapp-server'
primary_region = 'mia'
[build]
[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = 'stop'
auto_start_machines = true
min_machines_running = 1
processes = ['app']
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
and yes I have tried to set PORT=3000 but that has never worked.
22 replies
WWasp
•Created by Outseek on 11/6/2024 in #🙋questions
Port error when deploying with Fly
I just followed all of that but still getting this error
WARNING The app is not listening on the expected address and will not be reachable by fly-proxy.
You can fix this by configuring your app to listen on the following addresses:
- 0.0.0.0:8080
Found these processes inside the machine with open listening sockets:
PROCESS | ADDRESSES
-----------------*--------------------------------------- /.fly/hallpass | [fdaa🅰️d462:a7b:2eb:84ef:c82f:2]:22
-----------------*--------------------------------------- /.fly/hallpass | [fdaa🅰️d462:a7b:2eb:84ef:c82f:2]:22
[1/2] Running smoke checks on machine 32871562cd9708
22 replies