Replies: 3 comments 1 reply
-
I got the latest version and tested it, no problems. #! /usr/bin/env bash
# Let the DB start
python /app/app/backend_pre_start.py
#Runmigrations
alembic upgrade head
# Create initial data in DB
python /app/app/initial_data.py I think your prestart.sh should be like above, but there seems to be a problem. Have you modified anything? |
Beta Was this translation helpful? Give feedback.
0 replies
-
yes, my prestart.sh looks like this
#! /usr/bin/env bash
# Let the DB start
python /app/app/backend_pre_start.py
# Run migrations
alembic upgrade head
# Create initial data in DB
python /app/app/initial_data.py
I don't know if docker will run on another python version but my PC version
is 3.11
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I will try again with a fresh clone
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
…On Tue, Jul 16, 2024 at 11:08 AM light_meal ***@***.***> wrote:
I can't configure the environment so that an error like yours occurs.
First of all, what I'm curious about is: Have you searched for why the \r
error occurs?
In Windows, we confirmed that \r\n is added due to CRLF when editing with
an editor.
I offer you two solutions.
1. Modify and test the file to prevent CRLF problems from occurring.
2. Delete all currently cloned git data (folders), receive a new
clone, and test.
And if you did docker compose normally, I think python3.10.14 version
would have been installed in the container.
—
Reply to this email directly, view it on GitHub
<#1256 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG57QMPSCRZY7CF5DFTBWB3ZMVOSXAVCNFSM6AAAAABK6TKQCCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMBWGU2TQMY>
.
You are receiving this because you authored the thread.Message ID:
<tiangolo/full-stack-fastapi-template/repo-discussions/1256/comments/10065583
@github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I made a few adjustments to the project structure since I only need the backend because I don't need the frontend. the attached image is my fastAPI project structure.
I followed the documentation and I was able to spin up the docker container, but when I run
bash /start-reload.sh
in my docker exec, I got this error/app/prestart.sh: line 2: $'\r': command not found
here is my Dockerfile
docker-compose.yml file
docker-compose.override.yml file
Operating System
Windows
Operating System Details
Windows 10 running docker v4.25.1
Python Version
3.11.5
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions