#Cannot see Deployments for my server

71 messages · Page 1 of 1 (latest)

gusty dove
#

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)

still sedgeBOT
#

Project ID: bba4be91-606f-466f-85de-9069511bad58

gusty dove
#

bba4be91-606f-466f-85de-9069511bad58

frank axle
#

can you show the build history and the commit hashes of the commits you think should be deployed

gusty dove
#

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" -> #1059461258090401844 message

scarlet geyser
#

Hey i am facing the similar error can't see the deployment link for the app

#

@frank axle can you help here ?

frank axle
scarlet geyser
#

No this is not

#

I had tried redeploying

frank axle
scarlet geyser
#

More info as in ?

frank axle
#

build logs

#

comit history

#

maybe a link to the repo / site if you can

gusty dove
#

use incognito window to test it

#

it works in the incognito window

frank axle
scarlet geyser
#

build is fine

#

and also deploying the latest commit

frank axle
#

can you open a incognito tab and confirm its still not working

gusty dove
frank axle
#

correcting the cache headers. i dont know what your stack is so i cant tell

gusty dove
#

it's just Railway and THREE.js

scarlet geyser
#

Tried in incognito still the same issue

frank axle
#

three is a client side libary. i need to know how your serving your requests

scarlet geyser
#

Mine is just a nodejs server

frank axle
scarlet geyser
#

I got the fix i forgot to generate public domain for it

#

btw thanks for the help

gusty dove
gusty dove
#

it's a private repo but I can open it

frank axle
#

nah dw. what maybe just send the package.json

gusty dove
#

I didn't use Node.js so I have none, maybe that is the problem?

#

well, here's the repo

frank axle
#

oh its a static site

#

are you using the staic file provider

gusty dove
#

no, not to my knowledge

frank axle
#

what does this part look like

gusty dove
#

same as yours

frank axle
#

and the top of your build logs?

gusty dove
frank axle
#

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

gusty dove
#

like a nginx.conf file?

frank axle
#

yea

gusty dove
#

I will need to figure out how to do that

frank axle
#

yea. 1 sec

#

just finding one

#

but im very distracted rn lol

gusty dove
#

i found one already

frank axle
#

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}
            }}
        }}
#

( its a template literall so you have to substitue values)

gusty dove
frank axle
#

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 /
       
            }}
        }}

maybe try that

#

and tbh idk know if the config will get used i have no idea