2 months ago
For some reason, when I host my project on a VPS or something it uses 60MB, but when I try railway it uses 220MB+. What could it be?
21 Replies
2 months ago
Hey, what kind of application are you hosting?
2 months ago
How are you hosting NodeLink on your VPS vs on Railway?
I'm using an daemon service (specifically pm2)
And on Railway I made it clone and download an template config I made and put on the app folder
And also made it run a bash script
The only thing it does is change the config.js downloaded before based on envinroment variables
I can send the railpack.json + the start.sh if needed
2 months ago
I'll see what I can do here to minimize the memory usage, I have just deployed the NodeLink application as is (Dockerfile Node 20) without any configuration and it seems to use around 80MB under no load.
2 months ago
There is one, Railway also automatically uses it when deploying the GitHub repository. Keep in mind that it will fail, since their dockerignore somehow ignores files used in the Dockerfile, I'll create a pull request to merge the dockerignore file that I have corrected.
Actual NodeLink repo: https://github.com/PerformanC/NodeLink
NodeLink with the corrected dockerignore: https://github.com/uxuz/NodeLink
2 months ago
Just paste the GitHub url in the search bar that shows up when deploying from Github.
2 months ago
You are welcome!
Status changed to Solved uxuz • 2 months ago