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

Docker build less #135

Open
Benster900 opened this issue Oct 11, 2017 · 2 comments
Open

Docker build less #135

Benster900 opened this issue Oct 11, 2017 · 2 comments

Comments

@Benster900
Copy link

Benster900 commented Oct 11, 2017

Hey mwielgoszewski,

When building the docker container with docker build -t doorman . I get the following error:

Building bundle: public/css/common.css
Failed, error was: less: subprocess returned a non-success result code: 1, stdout=, stderr=SyntaxError: variable @path is undefined in bootswatch.less on line 10, column
@Benster900
Copy link
Author

Benster900 commented Oct 19, 2017

After doing some digging, it seems that the @path variable is not imported from any other file and isn't declared: https://github.com/mwielgoszewski/doorman/blob/master/doorman/static/css/bootswatch.less#L8

I edited the code to change import the url as

.web-font(@path) {
 @import url("@{path}");

to

.web-font(@web-font-path) {
@import url("@{web-font-path}");

This seemed to fix the issue and my page is now displaying.

@rocketnova
Copy link

@Benster900 I was getting your original error, but when I tried your fix I get the following error:

Building bundle: public/css/common.css
Failed, error was: less: subprocess returned a non-success result code: 1, stdout=, stderr=FileError: optional dependency 'request' required to import over http(s)
 in bootswatch.less on line 8, column 3

Did you make any additional changes to get it working?

mwielgoszewski added a commit that referenced this issue Dec 31, 2018
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

2 participants