0

I have the following line in app.Configure:

app.use(express.static(__dirname + '/public'));

The directory structure is: /public/scripts/
however, only 1 script is served while the rest are not. This is what I have in jade template:

 script(src='/scripts/login.js', type='text/javascript')
    script(src='/scripts/menu.js', type='text/javascript')
    script(src='/scripts/json.js', type='text/javascript')

login is being served, menu and json are both 404.

How do i fix this?

2
  • Are you sure the files are there? No extraneous characters? Errors in the terminal? Commented Dec 13, 2011 at 4:16
  • fixed, caused by an ntfs permissions issue Commented Dec 13, 2011 at 4:28

1 Answer 1

1

Fixed, caused by ntfs permissions issue

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.