Trying to deploy, getting yarn error

I kep getting this errorin the deploy logs after pushing to branch for a deploy: /bin/bash: line 1: yarn: command not found
Solution:
this repo does not use yarn, delete your procfile so that railway will use the build and start scripts defined in the package.json
Jump to solution
28 Replies
Percy
Percy17mo ago
Project ID: 582a2dd7-ca69-417a-aa64-8adce613caf9
Rich Prins
Rich PrinsOP17mo ago
582a2dd7-ca69-417a-aa64-8adce613caf9
Brody
Brody17mo ago
we will need a lot more information
Rich Prins
Rich PrinsOP17mo ago
ok I made a node template service, and just pushed to my main branch for a deploy, and am getting this error in the railway deploy logs. what else would you needs?
Rich Prins
Rich PrinsOP17mo ago
Rich Prins
Rich PrinsOP17mo ago
Brody
Brody17mo ago
github repo, any build or start commands you may have set in your service settings, build logs, etc as much information as you can give
Rich Prins
Rich PrinsOP17mo ago
build command should be yarn start
Rich Prins
Rich PrinsOP17mo ago
GitHub
GitHub - RichardSPrins/luke-mori-api
Contribute to RichardSPrins/luke-mori-api development by creating an account on GitHub.
Solution
Brody
Brody17mo ago
this repo does not use yarn, delete your procfile so that railway will use the build and start scripts defined in the package.json
Rich Prins
Rich PrinsOP17mo ago
seems so I changed the build and start commands to npm I dont use yarn locally this was just what was set when the template was made it seems
Brody
Brody17mo ago
all you had to do was delete the procfile
Rich Prins
Rich PrinsOP17mo ago
oh i just edited it
Brody
Brody17mo ago
just delete it
Rich Prins
Rich PrinsOP17mo ago
ok thank you
Brody
Brody17mo ago
no problem!
Rich Prins
Rich PrinsOP17mo ago
@Brody Now I have an issue with connecting
Rich Prins
Rich PrinsOP17mo ago
it deploys but the second I hit some endpoint, it crashes
Brody
Brody17mo ago
you are likely running out of the 512mb memory limit of the trial plan, please upgrade to the hobby plan
Rich Prins
Rich PrinsOP17mo ago
this was a simple endpoint, is it really that small?
Brody
Brody17mo ago
what endpoint and could you show me a screenshot of the service metrics set to 1 hour
Rich Prins
Rich PrinsOP17mo ago
I disabled the endpoints because I don't want them publicly available let me get those metrics but this server will be processing a nightly job that takes 3-4 minutes to finish
Rich Prins
Rich PrinsOP17mo ago
I had added some env variables and I guess that is where that spike came from redeeploying every time
Rich Prins
Rich PrinsOP17mo ago
plus the endpoint once it started working is there a limit to the memory in the hobby plan?
Brody
Brody17mo ago
8gb you'll want to upgrade anyway, the trial plan that you're currently on is being deprecated
Rich Prins
Rich PrinsOP17mo ago
I’m on hobby now But thanks that should be more than enough It only takes as long as it does because I have some 60s timeouts between some calls to prevent rate limiting on Webflow API
Brody
Brody17mo ago
sounds good! no more kills?
Rich Prins
Rich PrinsOP17mo ago
none si far, but I will check again at 1AM tonight when the CRON runs
Want results from more Discord servers?
Add your server