Skip to content

Cookiecutter Windows Bug in worker-start.sh: CRLF Linebreaks #13

@Sieboldianus

Description

@Sieboldianus

First, many thanks for this project! I am lookin forward to testing it.

I had some problems getting it to run on Windows and found the source (it was me). Even though it was my fault, I thought a note in the readme could be added for other users:

The backend would not start because linebreaks in worker-start.sh (and other bash-files) were CRLF (Windows), and not LF (Linux). In docker-compose logs this would appear as invalid command \r etc.

I used cookiecutter in Windows with cookiecutter https://github.com/tiangolo/full-stack-fastapi-postgresql, which issued CRLF linebreaks. Once using cookiecutter from WSL bash in Ubuntu, everything worked fine!

I think it generally a good recommendation to use docker-compose, and docker from WSL bash (connected through Windows Docker daemon running on localhost); and set VSCode (if used from Windows), to use LF in global settings with "files.eol": "\n".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions