Vendure deployment error
I successfully deployed my project on Railway by executing commands to export my database to Railway's PostgreSQL. Additionally, I seamlessly integrated the new environment variables from the updated database into my Vendure project.
database log errors
2023-12-23 21:00:59.298 UTC [8] LOG: starting PostgreSQL 16.0 (Debian 16.0-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2023-12-23 21:00:59.298 UTC [8] LOG: listening on IPv4 address "0.0.0.0", port 5432
2023-12-23 21:00:59.298 UTC [8] LOG: listening on IPv6 address "::", port 5432
2023-12-23 21:00:59.302 UTC [8] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-12-23 21:00:59.308 UTC [78] LOG: database system was shut down at 2023-12-23 21:00:59 UTC
2023-12-23 21:00:59.315 UTC [8] LOG: database system is ready to accept connections
2023-12-23 21:05:59.405 UTC [76] LOG: checkpoint starting: time
2023-12-23 21:06:03.634 UTC [76] LOG: checkpoint complete: wrote 45 buffers (0.3%); 0 WAL file(s) added, 0 removed, 0 recycled; write=4.220 s, sync=0.004 s, total=4.229 s; sync files=12, longest=0.002 s, average=0.001 s; distance=261 kB, estimate=261 kB; lsn=0/1954508, redo lsn=0/19544D0
2023-12-23 21:15:59.833 UTC [76] LOG: checkpoint starting: time
2023-12-23 21:16:46.412 UTC [76] LOG: checkpoint complete: wrote 465 buffers (2.8%); 1 WAL file(s) added, 0 removed, 0 recycled; write=46.447 s, sync=0.020 s, total=46.579 s; sync files=531, longest=0.002 s, average=0.001 s; distance=3533 kB, estimate=3533 kB; lsn=0/1CCA9B0, redo lsn=0/1CC79E0
2023-12-23 21:46:00.009 UTC [76] LOG: checkpoint starting: time
2023-12-23 21:46:02.323 UTC [76] LOG: checkpoint complete: wrote 23 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=2.306 s, sync=0.003 s, total=2.315 s; sync files=5, longest=0.003 s, average=0.001 s; distance=37 kB, estimate=3183 kB; lsn=0/1CD1108, redo lsn=0/1CD10D0
@replica: 04f22c57-cd62-464c-a202-1f75dc12f575
6 Replies
Project ID:
04f22c57-cd62-464c-a202-1f75dc12f575
you are trying to use a port in your url, you can only access apps that run on http externally from https and port 443, so make sure you use https and then omit the port in the url since 443 is implied when using https
If I understand correctly
If you're trying to access a website that runs on HTTP externally from HTTPS and port 443.
1. Use HTTPS: Make sure you access the website using "https://" instead of "http://". This ensures a secure connection.
2. Omit Port (if using default): If the website uses the default secure port (which is 443 for HTTPS), you don't need to explicitly mention the port in the URL. Just use "https://example.com" instead of "https://example.com:443" – the port is implied.
By following these steps, you're ensuring a secure connection (HTTPS) and letting the system automatically use the default secure port (443).
Where are you getting the 443?
443 is the default port for secure http traffic (https) any website you go to will use port 443. I am extremely surprised you have not heard of that port number before
Is my understanding correct?
yes it is