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

Less not found in production #110

Open
mikehm opened this issue May 13, 2015 · 5 comments
Open

Less not found in production #110

mikehm opened this issue May 13, 2015 · 5 comments

Comments

@mikehm
Copy link

mikehm commented May 13, 2015

My css is broken when I deploy my app to the production site. This is the error I am getting:

mysiteurl/app.less 404 (Not Found) .

Its weird however, when I deploy the app on github I don't have this problem.

I tried to find solutions elsewhere but to no avail. Let me know what could be causing this please.

Thanks.

@martin-s
Copy link

It's obviously not found :-)
You can make the build verbose with "grunt build --verbose --stack".

@mikehm
Copy link
Author

mikehm commented May 14, 2015

This is what the console gave me after making the build verbose:

Running "less" task

Running "less:production" (less) task
Verifying property less.production exists in config...OK

Files: app.less -> temp/app.css
Options: (none)
Reading app.less...OK
Writing temp/app.css...OK
File temp/app.css created.

Still not sure why app.less is missing and the css is broken.

@mikehm
Copy link
Author

mikehm commented May 20, 2015

Do you need to install less on the production server?

@cgross
Copy link
Owner

cgross commented May 20, 2015

The grunt build will compile all the less into css. When you build, it should create a fully optimized build int the /dist directory. There should be no references left to any less files in that optimized build. Either something is going wrong during the build or you're not deploying the correct thing.

@mikehm
Copy link
Author

mikehm commented Jun 3, 2015

Thanks resolved. It was a deployment error.

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

3 participants