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

Allow configuring the site directory #131

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RobertBoes
Copy link
Contributor

Currently the web directory is set to /public, with no option to change this. This adds a new environment value that allows overwriting this option.

For example, we have a Laravel package (so not an app), but within it we have a playground. This playground is an app to visually test the package. Thus we need to update the directory to /playground/public, which we currently do with an artisan command in the deploy script.

I have yet to test this, but I think this value should be used for the document_root, not where the project itself is located. We currently use this endpoint: https://forge.laravel.com/api-documentation#update-site. And that works as intended, so I think the new site creation should also work.

I can set this PR to draft until I've had a chance to test/verify, if you prefer that :)

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.

1 participant