Comments (3)
I can't replicate your problem, can you add a link to the place you put the dist folder online?
I cloned lineman-angular-template, and then ran lineman build
and started a simple static webserver in the dist
directory and things worked fine for loading the precompiled templates. Obviously the /login
endpoint doesn't exist, but that's to be expected.
For reference, here's the server
function I'm using as part of my dotfiles
# Start an HTTP server from a directory, optionally specifying the port
function server() {
local port="${1:-8000}"
open "http://localhost:${port}/"
# Set the default Content-Type to `text/plain` instead of `application/octet-stream`
# And serve everything as UTF-8 (although not technically correct, this doesn’t break anything for binary files)
python -c $'import SimpleHTTPServer;\nmap = SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map;\nmap[""] = "text/plain";\nfor key, value in map.items():\n\tmap[key] = value + ";charset=UTF-8";\nSimpleHTTPServer.test();' "$port"
}
from lineman-angular-template.
(link to the dist folder and to my app's repo sent privately)
from lineman-angular-template.
I found the problem in application.js
where i had:
// configure lineman to load additional angular related npm tasks
loadNpmTasks: lineman.config.application.loadNpmTasks.concat("grunt-ng-constant"),
moving this at the end of the file solved my problem.....but i'm still not sure why this line of codes causes the problem...
from lineman-angular-template.
Related Issues (20)
- Documentation: Incorrect reference to config/application.js in README.md? HOT 3
- "Bring config back into line with the archetype." broke previous config files HOT 6
- configurable webfonts to point to bower downloaded files directly HOT 3
- lineman grunt spec-e2e "Cannot find module 'coffee-script' Use --force to continue" HOT 11
- Unable to use ng-include with this setup. HOT 1
- Default app name as "app" is not specified anywhere in the docs HOT 1
- Q: why does server task run concat:less and other tasks again? HOT 5
- Question: how can I limit expansion of subdirectories for directives and individual views in pages HOT 1
- Get spec-e2e to work headless with ci? HOT 3
- Mixing *.coffee vs. *.js files HOT 3
- default BookService not working HOT 1
- ngmin is deprecated HOT 3
- coffeescript compiling HOT 5
- Help with integration HOT 1
- Support for Angular 2.0 HOT 3
- How to update? HOT 1
- lineman-angular-template cannot coffeescript HOT 1
- Help with ngTagsInput
- ui.bootstrap Datepicker issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lineman-angular-template.