R
Railway15mo ago
Dux

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