Cannot see Deployments for my server

Hello! I have made a Railway server to host a THREE.js server for my group project with two buddies of mine. They are part of my Github repo and can commit to main. However when just try to see the website, all I see is a older version of our app. All mine changes are visible to them. What would be the cause to this problem? (If further info needed just ask me)
46 Replies
Percy
Percy2y ago
Project ID: bba4be91-606f-466f-85de-9069511bad58
𝘬𝘢𝘱𝘱𝘺
bba4be91-606f-466f-85de-9069511bad58
Finn
Finn2y ago
can you show the build history and the commit hashes of the commits you think should be deployed
𝘬𝘢𝘱𝘱𝘺
I have found that opening in different browser fixed it. So it's something to do with a cache from this post maybe? "Railway deploys app when I commit code changes but the url shows the same old site" -> https://discord.com/channels/713503345364697088/1059461258090401844/1059461281293271080
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Finn
Finn2y ago
can you confirm this is not a caching issue
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Finn
Finn2y ago
can your provide more information
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Finn
Finn2y ago
build logs comit history maybe a link to the repo / site if you can
𝘬𝘢𝘱𝘱𝘺
use incognito window to test it it works in the incognito window
Finn
Finn2y ago
then this means its a problem with your aplication and its cache headers
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Finn
Finn2y ago
can you open a incognito tab and confirm its still not working
𝘬𝘢𝘱𝘱𝘺
what would be a fix for this?
Finn
Finn2y ago
correcting the cache headers. i dont know what your stack is so i cant tell
𝘬𝘢𝘱𝘱𝘺
it's just Railway and THREE.js
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Finn
Finn2y ago
three is a client side libary. i need to know how your serving your requests
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Finn
Finn2y ago
can you show the comit history
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
𝘬𝘢𝘱𝘱𝘺
sorry, I am not that good with Web tech. Could you tell me how do I go about checking that?
Finn
Finn2y ago
nice! is your repo open source?
𝘬𝘢𝘱𝘱𝘺
it's a private repo but I can open it
Finn
Finn2y ago
nah dw. what maybe just send the package.json
𝘬𝘢𝘱𝘱𝘺
I didn't use Node.js so I have none, maybe that is the problem? https://github.com/karlojacmenjak/mmi_projekt_threejs well, here's the repo
Finn
Finn2y ago
oh its a static site are you using the staic file provider
𝘬𝘢𝘱𝘱𝘺
no, not to my knowledge
Finn
Finn2y ago
what does this part look like
Finn
Finn2y ago
𝘬𝘢𝘱𝘱𝘺
{ "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "NIXPACKS" }, "deploy": { "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 10 } } same as yours
Finn
Finn2y ago
and the top of your build logs?
Finn
Finn2y ago
Finn
Finn2y ago
ah i see you need an nginx cofig im not actually sure how to change that. Try putting a config in the assets folder. ( maybe ) you can use that to change the chache headers 1 sec
𝘬𝘢𝘱𝘱𝘺
like a nginx.conf file?
Finn
Finn2y ago
yea
𝘬𝘢𝘱𝘱𝘺
I will need to figure out how to do that
Finn
Finn2y ago
yea. 1 sec just finding one but im very distracted rn lol
𝘬𝘢𝘱𝘱𝘺
i found one already
Finn
Finn2y ago
ah perfect fyi this is the template your app is using atm. so if you have any issues with config refer to this
daemon off;
error_log /dev/stdout info;
worker_processes auto;
events {{
worker_connections 1024;
}}

http {{
{mime_types}
access_log /dev/stdout;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 60;
types_hash_max_size 4096;
server {{
listen 0.0.0.0:80;
gzip {gzip};
root /app/{root};
location / {{
{auth_basic}
autoindex {directory};
}}
{error_page}
}}
}}
daemon off;
error_log /dev/stdout info;
worker_processes auto;
events {{
worker_connections 1024;
}}

http {{
{mime_types}
access_log /dev/stdout;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 60;
types_hash_max_size 4096;
server {{
listen 0.0.0.0:80;
gzip {gzip};
root /app/{root};
location / {{
{auth_basic}
autoindex {directory};
}}
{error_page}
}}
}}
( its a template literall so you have to substitue values) https://github.com/railwayapp/nixpacks/blob/main/src/providers/staticfile.rs#L107
𝘬𝘢𝘱𝘱𝘺
so I have to put values instead of {} brackets right, but what do I put there? Should I for example put the domain instead of listen or?
Finn
Finn2y ago
gzip: on directory: off ( i think ) root: get rid of the route part you can get rid of the auth basic part i think
daemon off;
error_log /dev/stdout info;
worker_processes auto;
events {{
worker_connections 1024;
}}

http {{
include mime.types;
access_log /dev/stdout;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 60;
types_hash_max_size 4096;
server {{
listen 0.0.0.0:80;
gzip on;
root /app/
location /

}}
}}
daemon off;
error_log /dev/stdout info;
worker_processes auto;
events {{
worker_connections 1024;
}}

http {{
include mime.types;
access_log /dev/stdout;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 60;
types_hash_max_size 4096;
server {{
listen 0.0.0.0:80;
gzip on;
root /app/
location /

}}
}}
maybe try that and tbh idk know if the config will get used i have no idea vercel migh be a better shout
Want results from more Discord servers?
Add your server