I just finished creating an AngularJS project with the yeoman generator, and now it's time to deploy it!
After reading up on AngularJS, it appears that the yeoman generator creates Angular projects using templateCache. This means I need to utilize a web server as a backend since it uses ajax requests to load pages. However, I want to run this project as a regular static HTML website on my VPS.
whatever.domain.com/HERES_ANGULAR
Is there a way to remove the usage of templateCache so I can treat it like a static webpage?
Here's the current structure of my project:
├── 404.html
├── favicon.ico
├── images
│ └── yeoman.png
├── index.html
├── robots.txt
├── scripts
│ ├── app.js
│ ├── controllers
│ │ ├── about.js
│ │ ├── main.js
│ │ ├── nav.js
│ │ ├── video.js
│ │ └── viewer.js
│ ├── directives
│ │ ├── moviedb-list.js
│ │ ├── playlist-view.js
│ │ ├── youtube-playlist.js
│ │ └── youtube-video.js
│ └── services
│ ├── moviedb.js
│ └── youtube.js
├── styles
│ ├── main.css
│ └── sidebar.css
└── views
├── about.html
├── contact.html
├── main.html
├── playlist.html
├── video.html
└── view.html
And here is my grunt file. I believe I may need to modify the grunt distribution task to simply copy the *.html files in the 'views' folder along with the distribution instead of utilizing ngTemplates.
// The rest of the original content remains unchanged