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
Project ID:
bba4be91-606f-466f-85de-9069511bad58
You might find these helpful:
- Railway deploys app when I commit code changes but the url shows the same old site
- Services | Railway Docs
⚠️ experimental feature
bba4be91-606f-466f-85de-9069511bad58
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•2y ago
Message Not Public
Sign In & Join Server To View
can you confirm this is not a caching issue
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
can your provide more information
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
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
then this means its a problem with your aplication and its cache headers
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
can you open a incognito tab and confirm its still not working
what would be a fix for this?
correcting the cache headers. i dont know what your stack is so i cant tell
it's just Railway and THREE.js
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
three is a client side libary. i need to know how your serving your requests
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
can you show the comit history
Unknown User•2y 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?
nice!
is your repo open source?
it's a private repo but I can open it
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
oh its a static site
are you using the staic file provider
no, not to my knowledge
what does this part look like
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
same as yours
and the top of your build logs?
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?yea
I will need to figure out how to do that
yea. 1 sec
just finding one
but im very distracted rn lol
Full Example Configuration | NGINX
A full-fledged example of an NGINX configuration.
i found one already
ah perfect
fyi this is the template your app is using atm. so if you have any issues with config refer to this
( 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?gzip:
on
directory: off
( i think )
root: get rid of the route part
you can get rid of the auth basic part i think
maybe try that
and tbh idk know if the config will get used i have no idea
vercel migh be a better shout