AWS 504 Gateway timeout on Laravel Application

fr flag

What we need to consider when lunching a Laravel Application on the AWS server?

I have the local version, with same database and code base, but the page the through 504 error on the online server loading in 1.5 second in my local ENV, with 8GB memory.

We upgraded the AWS server to t3.large, but same result and the page load time is 1 minute and randomly through 504 error.

so what config missed here that my local env is much faster than the AWS server?

Tim avatar
gp flag
Most likely something is misconfigured as EC2 should be about the same performance as your local machine - but adding latency. Impossible to say what as you have provided very little information.
Mrwut avatar
ng flag
Are you trying it behind corporate network? Could be proxy or even your company not whitelisting the ec2 address space (like in my case). You could try to reach it from a different network, like cellular from your phone.
Nasser Ali Karimi avatar
fr flag
Yes, it is wired as I didn't know how to specify it, but looks it was the Laravel problem and as I used wherenotin it caused the issue.

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.