Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Running Grav on multiple servers with load balancer

Started by Muut Archive 10 years ago · 3 replies · 871 views
10 years ago

So we're running into an interesting issue when having Grav run on two servers via a load balancer.

If we have the asset pipeline enabled (which we really want) Grav seems to run fine on one server but on server 2 the CSS and JS file gets a 404 and don't load. If we disable the asset pipeline then everything works fine on both servers.

Has anyone else ran into this issue or have experience running a Grav site on multiple servers with a load balancer?

10 years ago

Yes this is the same issue. Grav will generate some files with random names with cache enabled, image processing, or assets pipelining. Sticky sessions will fix it.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2280 9 years ago
Archive · by Muut Archive, 9 years ago
2 1496 9 years ago
Archive · by Muut Archive, 9 years ago
2 4745 9 years ago
Archive · by Muut Archive, 9 years ago
1 3557 9 years ago
Archive · by Muut Archive, 9 years ago
3 1621 9 years ago