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