Unable to upload code
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:Jump to solution
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)...
24 Replies
Project ID:
caba5948-1820-4dba-baa3-0b15ac62790c
Solution
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)
It excludes all the node modules right?
railway up does have a built in rule to ignore node_modules, yes
but you should exclude that folder with a .gitignore file too
How can I ignore certain files while uploading in railway?
Yea I've got that
you can use a .gitignore file
For railway right?
railway up will respect the rules in the .gitignore file the same way git would
ah
Alright
Thank you
anything else I can help with?
Does the 50 mb limit applies to upload limit or the total limit per project?
the upload size limit for railway up
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
Ah
Good idea
No, actually it utilizes the CPU
Not anything else
alright no worries, just so you know what to do if you run into instabilities
Thanks man
no problem
One last doubt, should I care about this warning?:
Warning Failed to make bytecode node16-x64 for file ....
Got like around 30-40 of such
Denoting the axios package in node modulesyeah that doesn't look like a very nice warning to have
So what should I do?
are you building with PKG?
Nope
Ah I have it installed
pkg module
Imma uninstall
there should be no need for pkg when on railway
I had used it for something earlier
Forgot to remove
π