Look, I have this discussion with my mate about how to properly host a single page application written in AngularJS, and using restfull services from an external API. Basically, he wants to build a grails (PaaS I think) environment using dokku to generate "builds" and serve the website in a "dokku way", while I simply want to create a release using grunt build function from *yeoman's generator-angular*and put those files into some web server.
You can see a WIP here: http://frondor.github.io/MuWebApp/dist/ As you can see in the source code, it's a release generated using grunt build, and it's ready to be hosted anywhere, even in github.io! But he suggest to use a grails technology <http://grails.org/plugin/resources> like a server, which generates own builds... In MY opinion, *if we do use dokku to serve the website content, we are totally missing the point of SPA/static websites*. Actually to run the website is as simply as dropping that build/release into a web server (services like github pages, heroku, any shared host with some decent CDN on it) and that's all! No need to setup anything complex and to rely on something like dokku build's. That idea annoys me. Who's right? Or at least "closer" than the other? :D -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
