Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run route.php when grav is not at the root of the server #2541

Merged
merged 1 commit into from
Aug 12, 2019

Conversation

aoloe
Copy link
Contributor

@aoloe aoloe commented Jun 6, 2019

Currently, if I want to use the router.php provided by Grav I need to start php -S in the Grav's root folder.

If on the production server, Grav is not installed at the documents root, this will make it slightly more complex to manage the assets.

This patch adds the option to start Grav as:

GRAV_BASEDIR="/grav" php -S localhost:8000 grav/system/router.php

(in this case it will also accept "grav" and "grav/" as the basedir values)

Copy link
Member

@mahagr mahagr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@aoloe
Copy link
Contributor Author

aoloe commented Aug 6, 2019

coucou...

@rhukster rhukster merged commit aa8f764 into getgrav:develop Aug 12, 2019
@rhukster
Copy link
Member

I'm going to optimize this a bit for readibility, but functionality will remain unchanged.

@aoloe
Copy link
Contributor Author

aoloe commented Aug 13, 2019

ok, thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants