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:Jump to 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
28 Replies
Project ID:
582a2dd7-ca69-417a-aa64-8adce613caf9
582a2dd7-ca69-417a-aa64-8adce613caf9
we will need a lot more information
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?
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
build command should be yarn start
github repo is https://github.com/RichardSPrins/luke-mori-api
GitHub
GitHub - RichardSPrins/luke-mori-api
Contribute to RichardSPrins/luke-mori-api development by creating an account on GitHub.
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
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
all you had to do was delete the procfile
oh i just edited it
just delete it
ok thank you
no problem!
@Brody Now I have an issue with connecting
it deploys but the second I hit some endpoint, it crashes
you are likely running out of the 512mb memory limit of the trial plan, please upgrade to the hobby plan
this was a simple endpoint, is it really that small?
what endpoint
and could you show me a screenshot of the service metrics set to 1 hour
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
I had added some env variables and I guess that is where that spike came from redeeploying every time
plus the endpoint once it started working
is there a limit to the memory in the hobby plan?
8gb
you'll want to upgrade anyway, the trial plan that you're currently on is being deprecated
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
sounds good! no more kills?
none si far, but I will check again at 1AM tonight when the CRON runs