R
Railway•17mo ago
DM

limit-request-line parameter

I've got a flask app running with a procfile. What parameters does railway accept in the procfile? I've tried to configure limit-request-line=8190, however this doesn't seem to register in the deploys.
Solution:
looks like i have the start command hardcoded somehow
Jump to solution
37 Replies
Percy
Percy•17mo ago
Project ID: N/A
Brody
Brody•17mo ago
railway only has very basic support for the procfile, web and worker are treated the same, etc
DM
DMOP•17mo ago
Got it. Is there an alternative for configuring the request line limit?
Brody
Brody•17mo ago
tbh I have absolutely no clue what that even is, tell me what it is and maybe I could tell you a different way to do it?
DM
DMOP•17mo ago
Sure. The requests I'm sending to the app are too long. The default character limit is ~4k
Brody
Brody•17mo ago
I'm sorry, I've misunderstood this, this isn't really about a Procfile, this is a gunicorn config flag right?
DM
DMOP•17mo ago
sorry - not sure what you mean?
Brody
Brody•17mo ago
show me your current Procfile please
DM
DMOP•17mo ago
isn't a procfile the config file for my gunicorn?
Brody
Brody•17mo ago
not quite how that works
DM
DMOP•17mo ago
web: gunicorn app:app --limit-request-line=8190 --worker-connections=50 --workers=5 had to switch back to heroku since this bug was crashing prod and I couldn't figure it out in ~30m.
Brody
Brody•17mo ago
okay so that all looks good can you show me your build table at the top of the build logs please?
DM
DMOP•17mo ago
Also I should be on a dev plan - not sure why my flair is listed as hobby yup - 1 sec
Brody
Brody•17mo ago
haha that's just a simple name change, since the developer plan will be completely phasesd out August 1st, there was no big need to make separate badges
DM
DMOP•17mo ago
Ahh
DM
DMOP•17mo ago
yeah, it's not showing up in the build logs
Brody
Brody•17mo ago
that's a completely different start command than the start command in the procfile you just sent
DM
DMOP•17mo ago
bloop
Brody
Brody•17mo ago
there's a few things that can cause this, let's work through them
DM
DMOP•17mo ago
yeah, alright what am i doing. gimme a sec.
Brody
Brody•17mo ago
are you deploying from the correct repo and branch?
DM
DMOP•17mo ago
i am. figured it out.
Solution
DM
DM•17mo ago
looks like i have the start command hardcoded somehow
DM
DMOP•17mo ago
Brody
Brody•17mo ago
that was on the checklist haha, glad you got it figured out!
DM
DMOP•17mo ago
where's my confetti can i just clear that and rely on the procfile
Brody
Brody•17mo ago
🥳🥳🥳 absolutely
DM
DMOP•17mo ago
alright let's see if i can get this to work again
DM
DMOP•17mo ago
For reference, this is how my day is looking on heroku
DM
DMOP•17mo ago
194 user-facing timeouts. love my life.
Brody
Brody•17mo ago
what size Dyno are you on?
DM
DMOP•17mo ago
2x But also my product was discovered by the country of India, again.
Brody
Brody•17mo ago
well the pro plan sure gives you a whole lot more resources than the 2x dyno
DM
DMOP•17mo ago
that it does.
Brody
Brody•17mo ago
is railway using the start command in the procfile now?
DM
DMOP•17mo ago
I think so. Going to test re-routing traffic back to the railway endpoint. $1500 revenue last month 🎊
Brody
Brody•17mo ago
that's awesome!! and if you have any more questions feel free to ask 🙂
Want results from more Discord servers?
Add your server