Rahat Bin Taleb
Old project stopped working after re-deploying
because youare not clear in what you say!
build time things: the things which are decided in built time ! so if the react env is decided in built time it will store the env variable at that moment isn;t it?
do you agree that?
69 replies
Old project stopped working after re-deploying
what are you saying??
if the env for static website is a build thing then my app should work even after i remove the runtime variable because runtime varibales are injected to the containe rby railway isn't it
69 replies
Old project stopped working after re-deploying
see there is 2 cases ! if i really supplied the env during build then even if i remove the env from the railway app it should work the same! but i can show you now a practically demo that if i remove the react app env my deployment will stop working again
69 replies
Old project stopped working after re-deploying
that for fisrtdeployment it was not working because it didnt get the env due to the build process ! and when i retried the build env wa sosmehow go some magic and it started working gaain
69 replies
Old project stopped working after re-deploying
https://github.com/ToxicalNoob3062/THE-NASA-PROJECT/tree/master/client
this is the same client repo that i am seeing now in my dev env too all the files are synced ! and i am using the build command of pakcage.json which is also doesnt giving any env as it arguements!
69 replies
Old project stopped working after re-deploying
REACT_APP_ENV=dev
REACT_APP_SERVER_PORT=5000
REACT_APP_PORT=5000
PORT=5000
oh my bad but my server had a .env file in my local repo with this variabbles but these never get included in the cloud repo! so then what are you trying to say?
69 replies
Old project stopped working after re-deploying
https://github.com/ToxicalNoob3062/THE-NASA-PROJECT/tree/master
well i think railway is fetching my latest deployment as i can see of github! and in my are eyes i can see any .env file in my repo
69 replies
Old project stopped working after re-deploying
but earlier it was working and not it is working to! and as i said i don't need to ! because my frontend is like a js file search for a env! so in that case it becomes a part of your server project! because the frontend is nothing but a route of my backend!
69 replies