Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Relocate pages folder

Started by Christiana 4 years ago · 1 replies · 357 views
4 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

4 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 Thomas, 1 week ago
2 60 16 hours ago
Support · by Anna, 3 days ago
2 66 19 hours ago
Support · by Justin Young, 20 hours ago
1 34 20 hours ago
Support · by Duc , 1 week ago
2 70 6 days ago
Support · by Colin Hume, 1 week ago
2 61 6 days ago