a year ago
I am having hard times uploading my stuff to production cause I generate the deployment artifacts on my machne and then want to upload it , but they are ignored in my .gitignore and won't get uploaed I tried the code here https://github.com/railwayapp/cli/pull/481
but it's not working on the latest CLI
0 Replies
a year ago
that pr may have been merged, but a release containing the flag has not been made yet
a year ago
remove the files from your gitignore
I don't want to rename delete the file each publish…
also in the documentation it says that .gitignore is not used…
a year ago
show me the docs that say that? railway up
has used the .gitignore file since v0
Can't find it now,
Howeverr the documentation for up don't mention this,
https://docs.railway.app/reference/cli-api#up
And since I am deploying a docker file , I expect that the docker build will happen the same way as on mine machine, So I had build the docker image on mine machine and It had all the files and in your build the files were missing, which is huge misaligment and it not noted anywhere so It took me 2-3 hours to figure out that it's because of .gitignore that you obey for some reason…
.gitignore is for git… you are a difrrent app
a year ago
its true railway is not git, but removing behavior that has been around since v0 of the cli, removing that would break too many things, thats why the flag has been added, docs pending.
a year ago
im sorry i dont have a timeline
a year ago
that likely wont work because .railwayignore is loaded before .gitignore for some reason
a year ago
it would always be possible for the cli to be compiled from source
yes… but it's too much , I will implement renaming the file before, and returning it after
We moved from fly.io
a year ago
not my platform 🙂 i dont work for railway
a year ago
but may i ask why you dont let railway create the build artifacts?
a year ago
im a conductor (discord mod) the people who work for railway have a railway logo besides their name
a year ago
do you mean nixpacks?
a year ago
yes railway runs on docker
a year ago
what do you mean by "our file"
a year ago
everything on railway is going to be a docker container
a year ago
if you have your own Dockerfile railway will use that
Yes , so we have Dockerfile
And it's much faster to build than the nixpacks one
a year ago
so why not let railway do the build artifacts?
A… there is some issue … Which is not happening locally like the local docker file builds normally , creating the artifacts etc…
on railway I get some weird errors…
I didn't dived in … rename of .gitignore did the trick yesterday , so I didn't dived in….
We are a tiny 2 people team, so we prefer to focus on our logic… not dive into some platform stuff yet… 🙂
a year ago
fair enough
This is the solution we are working on for the last 3+ years in the spare time
https://www.joinsafedeal.com/
a year ago
very cool, happy to help where i can