R
Railway•9mo ago
eOBender

railway up --no-gitignore

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
GitHub
Remove .gitignore from ignore files in up by Milo123459 · Pull Re...
This removes the searching of .gitignore in the up command. This previously caused some unknown behaviour.
No description
34 Replies
Percy
Percy•9mo ago
Project ID: c26b8920-7fe4-424d-a3d7-77ee61a21ac4
eOBender
eOBenderOP•9mo ago
c26b8920-7fe4-424d-a3d7-77ee61a21ac4
Brody
Brody•9mo ago
that pr may have been merged, but a release containing the flag has not been made yet
eOBender
eOBenderOP•9mo ago
So what I should do?
Brody
Brody•9mo ago
remove the files from your gitignore
eOBender
eOBenderOP•9mo ago
I don't want to rename delete the file each publish... also in the documentation it says that .gitignore is not used...
Brody
Brody•9mo ago
show me the docs that say that? railway up has used the .gitignore file since v0
eOBender
eOBenderOP•9mo ago
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
Railway Docs
CLI API Reference | Railway Docs
Documentation for Railway
Brody
Brody•9mo 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.
eOBender
eOBenderOP•9mo ago
ok. So It will be out in 2-4 weeks ?
Brody
Brody•9mo ago
im sorry i dont have a timeline
eOBender
eOBenderOP•9mo ago
Ok, I also tried a solution to define negative rules in your .railwayignore This didin't worked ... or maybe I had missed anything...
Brody
Brody•9mo ago
that likely wont work because .railwayignore is loaded before .gitignore for some reason it would always be possible for the cli to be compiled from source
eOBender
eOBenderOP•9mo ago
yes... but it's too much , I will implement renaming the file before, and returning it after Thanks for your help 🙂 I really love your platform We moved from fly.io
Brody
Brody•9mo ago
not my platform 🙂 i dont work for railway
eOBender
eOBenderOP•9mo ago
Anyhow , you involved 🙂
Brody
Brody•9mo ago
but may i ask why you dont let railway create the build artifacts?
eOBender
eOBenderOP•9mo ago
You have the train near your name so ... 🙂
Brody
Brody•9mo ago
im a conductor (discord mod) the people who work for railway have a railway logo besides their name
eOBender
eOBenderOP•9mo ago
railway do 10 step docker build our file do 4
Brody
Brody•9mo ago
do you mean nixpacks?
eOBender
eOBenderOP•9mo ago
Yes, It's running some kind of socker build *docker
Brody
Brody•9mo ago
yes railway runs on docker what do you mean by "our file"
eOBender
eOBenderOP•9mo ago
We run on NodeJS If it has native runtime without docker we wold deploy .,. Our Dockerfile
Brody
Brody•9mo ago
everything on railway is going to be a docker container
eOBender
eOBenderOP•9mo ago
Also we have fine control over the nodejs version
Brody
Brody•9mo ago
if you have your own Dockerfile railway will use that
eOBender
eOBenderOP•9mo ago
Yes , so we have Dockerfile And it's much faster to build than the nixpacks one
Brody
Brody•9mo ago
so why not let railway do the build artifacts?
eOBender
eOBenderOP•9mo ago
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... 🙂
Brody
Brody•9mo ago
fair enough
eOBender
eOBenderOP•9mo ago
This is the solution we are working on for the last 3+ years in the spare time https://www.joinsafedeal.com/
Safe Deal - protect yourself from bad deals, scams and poor service.
Safe Deal protects you from security issues like phishing, commercial fraud, online frauds, and dangerous deals. Don't really know what can go wrong when you shop online?You don't have to.
eOBender
eOBenderOP•9mo ago
Thank you very much for your help
Brody
Brody•9mo ago
very cool, happy to help where i can
Want results from more Discord servers?
Add your server