Coder Social home page Coder Social logo

Comments (3)

davemo avatar davemo commented on July 20, 2024

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.

ricricucit avatar ricricucit commented on July 20, 2024

(link to the dist folder and to my app's repo sent privately)

from lineman-angular-template.

ricricucit avatar ricricucit commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.