-
-
Notifications
You must be signed in to change notification settings - Fork 655
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
Change docroot in .env #206
Comments
@johnwbaxter good catch, this is indeed an error with Looking at your special case, I think it can be done more easily. Have a look at the CakePHP setup at step 4: https://github.com/cytopia/devilbox/blob/master/docs/Examples.md#21-setup-cakephp Let me know if this resolves your problem for now. |
Ha! I didn't think about a symlink! Nice, i'll do just that :) Thanks!! |
Hmm, not sure why, but my symlink isn't working here. Everything looks right, but, no luck. I'll just wait until you have a fix for this one and then go back to it. |
Hmm this should actually work as it is a standard feature and I do it all the time. What OS are you on and can you also show me the symlink via |
I'm on OSX. And the error it gives is: 403 Forbidden |
And Also by default the docroot name must be |
Public needs to point to |
I have changed it to that and still get the same error. I ran It's ok, i'll change my setup for now. Thanks! |
OK, one other thing that I see just now. Looks like your symlink is inside a directory called
|
You should use symlinks for this kind of stuff, because changing |
Yep, just caught that one myself! Yep happy to use symlinks, but all my projects do follow the same directory structure, so it wouldn't have been an issue. Thanks!!!! |
Cool, thanks again! |
I am trying to change the docroot of an existing devilbox in the .env file.
The docs say to change the value and restart devilbox which i have done. (docker-compose down and then up)
I had: HTTPD_DOCROOT_DIR=public
I want: HTTPD_DOCROOT_DIR=deploy/public
I seem to get this error in the output which i don't normally:
httpd_1 | vhostgen: [2018-03-09 14:36:32] Adding: localhost
httpd_1 | sed: -e expression #1, char 31: unknown option to `s'
devilbox_httpd_1 exited with code 1
The text was updated successfully, but these errors were encountered: