-
Notifications
You must be signed in to change notification settings - Fork 19
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
Can this be used with PHP sites and Virtual Hosts? #6
Comments
+1 on this! |
Same issue with the virtual hosts. I've tried using reload: {
proxy: {
host: 'susydemo'
}
}, and my output in terminal is as follows: Running "reload" task
Proxying http://susydemo:80/
reload server running at http://localhost:8001 |
Managed to get it working with the following: // added server under grunt.initConfig
server: {
base: 'http://susydemo'
},
reload: {
proxy: {
port: 80,
host: 'susydemo' // is the name of my vhost
}
},
watch:{
files:['index.html', 'style.less'],
tasks:'default reload'
},
// etc... |
Thanks @imjared for sharing your fix, but unfortunately, it didn't work for me. Here's my related grunt config:
I'm still getting the following even after adding the
Did you happen to do more than just add the |
Is If that doesn't work for you, I'm afraid I won't be too much more help 😞 |
Thanks for the reply @imjared,
But, that didn't help either. The problem is I'm not familiar with ports and such, so I'm not really sure what the different ports are supposed to reflect. Oh well, thanks for trying to help :) |
I use MAMP with virtual hosts using port 80. I can't seem to figure out exactly how to configure the reload config. Here's how I want to write it:
This may be a stupid question, but can this also work with PHP sites that don't have a root index.html file?
The text was updated successfully, but these errors were encountered: