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