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

[Bug]: configure the local development setup to set the public/ directory as the webroot #1255

Closed
imcodingideas opened this issue Jan 27, 2025 · 1 comment
Labels

Comments

@imcodingideas
Copy link

Platform

macOS

Operating system version

15.2 (24C101)

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.14.1 (Build: 39)

PHP Version

PHP 8.4.3 (cli) (built: Jan 18 2025 00:23:59) (NTS)

Bug description

I'm running https://roots.io/radicle/ which really running laravel for wordpress.

When I goto https://radicle.test I get a 404 Site not found

The main issue here, I believe, is I have no way to configure the local development setup to set the public/ directory as the webroot

I've done all of this.

  1. In bud.config.js: Replace http://radicle.test with your local dev server URL
  2. Run yarn && yarn build
  3. Run composer install
  4. Configure your local development setup to set the public/ directory as the webroot.
  5. Copy .env.example to .env and update the environment variables

Steps to reproduce

I was able to create a herd.yml file. It's not clear how to configure the public/ directory as webroot.

Relevant log output

@issuelabeler issuelabeler bot added the macOS label Jan 27, 2025
@mpociot
Copy link
Member

mpociot commented Jan 28, 2025

You would need to create a custom local "Driver" in order for Herd to know how to load your project.

You can learn more about this in the docs section: https://herd.laravel.com/docs/macos/extending-herd/custom-drivers#custom-laravel-driver-example

@mpociot mpociot closed this as completed Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants