R

Railway

βœ‹ο½œhelp

Join Server

Unable to upload code

DDux5/20/2023
Hi there,
I'm trying to upload my project to railway as for hosting it...
Using railway's CLI, I've runned railway up to start the server but it seems like it have failed to upload the code to railway's servers. Can anyone help me out with this?
Language: JS [Node]
Project: Based on tensorflow.js
Size of model used for tensorflow: ~90 mb.
Package: @tensorflow/tfjs-node
Solution
Bbrody5/20/2023
railway up has a project size limit of 50mb.
you will want to deploy from github, github can store files up to 100mb without the use of git lfs (railway does not support git lfs either)
DDux5/20/2023
It excludes all the node modules right?
Bbrody5/20/2023
railway up does have a built in rule to ignore node_modules, yes
Bbrody5/20/2023
but you should exclude that folder with a .gitignore file too
DDux5/20/2023
How can I ignore certain files while uploading in railway?
DDux5/20/2023
Yea I've got that
Bbrody5/20/2023
you can use a .gitignore file
DDux5/20/2023
For railway right?
Bbrody5/20/2023
railway up will respect the rules in the .gitignore file the same way git would
DDux5/20/2023
ah
DDux5/20/2023
Alright
DDux5/20/2023
Thank you
Bbrody5/20/2023
anything else I can help with?
DDux5/20/2023
Does the 50 mb limit applies to upload limit or the total limit per project?
Bbrody5/20/2023
the upload size limit for railway up
Bbrody5/20/2023
oh and since you are doing ai stuff, your app will very likely try to use more than 512mb of ram this will cause massive instabilitys, you might wanna upgrade to the dev plan
DDux5/20/2023
Ah
DDux5/20/2023
Good idea
DDux5/20/2023
No, actually it utilizes the CPU
DDux5/20/2023
Not anything else
Bbrody5/20/2023
alright no worries, just so you know what to do if you run into instabilities
DDux5/20/2023
Thanks man
Bbrody5/20/2023
no problem
DDux5/20/2023
One last doubt, should I care about this warning?:
Warning Failed to make bytecode node16-x64 for file ....
DDux5/20/2023
Got like around 30-40 of such
DDux5/20/2023
Denoting the axios package in node modules
Bbrody5/20/2023
yeah that doesn't look like a very nice warning to have
DDux5/20/2023
So what should I do?
Bbrody5/20/2023
are you building with PKG?
DDux5/20/2023
Nope
DDux5/20/2023
Ah I have it installed
DDux5/20/2023
pkg module
DDux5/20/2023
Imma uninstall
Bbrody5/20/2023
there should be no need for pkg when on railway
DDux5/20/2023
I had used it for something earlier
DDux5/20/2023
Forgot to remove
Bbrody5/20/2023
πŸ‘