Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Relocate pages folder

Started by Christiana 5 years ago · 1 replies · 555 views
5 years ago

Hi to everyone!

Is it possible to put the pages folder outside of the grav root directory? And then work with a symlink for example or relocate the global pages path from grav?

I would be very happy about ideas, hints or advices!

Greetings, Christiana

5 years ago

@christiana83, I'm using Windows Subsystem for Linux (WSL) with Ubuntu. I have about 15 symlinked installations linking to a single Grav installation. Only /cache, /images, /logs/ and */user are not being symlinked.

All is working fine.

Try:

BASH
$ mv user/pages /tmp
$ ln -s /tmp/pages user/pages
$ bin/grav cache

Browser should display the site correctly.

See also command $ bin/grav sandbox -s ../destination about symlinked installations.

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 1 week ago
4 175 1 week ago
Support · by nwhitfield, 1 week ago
2 151 1 week ago
Support · by stell, 3 weeks ago
5 385 2 weeks ago
Support · by gravinator, 1 month ago
5 578 2 weeks ago
Support · by Gravver, 3 weeks ago
6 363 3 weeks ago