Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serving static files #639

Closed
lucaswxp opened this issue Sep 2, 2014 · 1 comment
Closed

Serving static files #639

lucaswxp opened this issue Sep 2, 2014 · 1 comment

Comments

@lucaswxp
Copy link

lucaswxp commented Sep 2, 2014

Hey guys.

I didn't find any "question" label, so I can't tag this.

How do I serve my static assets? I tried putting them in app/assets folder and add app.use(express.static(compound.root + '/app/assets')) in my config, but I still got errors like:

Error: Undefined action img#logo.png(/img/logo.png)

@lucaswxp
Copy link
Author

lucaswxp commented Sep 2, 2014

Sorry for the noob question. I'm supposed to put my public assets in public/ folder, not app/assets.

@lucaswxp lucaswxp closed this as completed Sep 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant