Angular and Drupal: Proxying angular for development
Posted by RobKoberg on August 18, 2014 at 2:10pm
A few weeks ago, I read a blog post about using angular in drupal. It mentioned to rebuild the app each time you make a change. That would drive me mad.
If you are using angular on the same server as drupal (that is, in a subdirectory of the docroot), you can proxy your grunt served angular app.
To proxy the angular app do a normal $ grunt serve to have the app running. In a apache vhost, you can place:
DocumentRoot "/path/to/drupal/docroot"
ServerName local.dev
ProxyRequests Off
Order deny,allow
Allow from all