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

Difficulty implementing on Windows machine in both approach (ruby & docker as well) #1655

Open
SaravanaGoutham opened this issue Aug 25, 2022 · 3 comments

Comments

@SaravanaGoutham
Copy link

SaravanaGoutham commented Aug 25, 2022

Bug Description
A clear and concise description of what the bug is and how to reproduce it.

Steps to reproduce for using ruby:

1.clone the template (from github)
2. Update gem file of sass library into saasc
3. execute this cmd : Gem install bunder
4. execute this cmd : bundle installed
5. execute this cmd : bundle exec middleman build
6. screen.css.scss file are showing some error when build , so remove this: // and add /* */ only inside the css class
7. after fixes of scss file again build it and then
8. execute this cmd : bundle exec middleman build

once server started , the ui look like collapsed screen shot were attached below
image

Using docker

the following issue were if use docker option to build it in windows machine.

I followed the instructions as per the Docker integration and found I was not able to publish a version of my Slate documentation as there were line endings issues, "/usr/bin/env: ‘bash\r’: No such file or directory" when tried with a slightly different methodology there were issues about Gemfiles and bundle not existing, which I understand to be Ruby specific. Is there a way to publish without downloading Ruby

Always docker steps:

image

Screenshots
If applicable, add screenshots to help explain your problem.
If using ruby to do we are getting build issue and UI looks like collapsed.

image

Browser (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Last upstream Slate commit (run git log --author="\(Robert Lord\)\|\(Matthew Peveler\)\|\(Mike Ralphson\)" | head -n 1):
Put the commit hash here

@MasterOdin
Copy link
Member

MasterOdin commented Aug 25, 2022

  1. Update gem file of sass library into saasc

These two gems are not fully API compatible, so not surprised that this breaks the CSS. I cannot offer advice on how to get it working as I'm not familiar enough with ruby or the sass ecosystems to understand what the solution might be to upgrade.

For the docker issue, it sounds like you're running into the same issue as #1654. If you edited this line of the Dockerfile:

ENTRYPOINT ["/srv/slate/slate.sh"]

to be:

 ENTRYPOINT ["bash", "/srv/slate/slate.sh"] 

does that resolve the first issue you were seeing?

@SaravanaGoutham
Copy link
Author

@MasterOdin Could you please help me on the which commit will work windows.

I just installed ruby latest version ruby 3.1.2p20.
And My Machine in Windows 11 Pro
followed the steps

  1. gem install bundler
  2. bundle install
  3. bundle exec middleman build
  4. bundle exec middleman server

but getting followed error when build, even i didn't update/change gem related files
image

How to use the exact commit or version to use this in windows with breaking any.

Very big thanks for you kind reply.

@MasterOdin
Copy link
Member

I'd like to focus on getting the Docker container working for you as that'll be easier for me to help you with, as I don't have a Windows machine available to give you advice on what might be going wrong.

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