Error running the application in the background.
I cannot or the screen -S command is not executed in my program, and I do not know what the solution is, knowing that the project does not work unless this procedure is implemented.
![](https://cdn.answeroverflow.com/1148340523548028979/Screenshot_-_Chrome.jpg)
52 Replies
Project ID:
fadd4c5c-74c0-4fd7-a209-03a8f7029c8d
fadd4c5c-74c0-4fd7-a209-03a8f7029c8d
You won’t have access to the screen command in a container deployment. Your best bet would be to run the services separately from one another or use multi run and build your own Dockerfile for launching your service
Can you guide me to create a Dockerfile? I will be grateful to you.
you could also use parallel with nixpacks
what are the two commands you want to run at the same time
I did not understand you, sir, but I want to execute the screen -S command so that the application runs in the background. Did you understand me?
Screen will not run in a docker container, you will need to either run multiple services or use parallel with nixpacks, or multi run inside of docker
what kind of background process is it?
Well, which service should I work and how? Because frankly, I don’t know about them.
Can I provide you with the code so you can understand more?
also tell us the commands you would run locally to get your project all up and running
this would be good
if you're running a backend web service and it's just a cronjob btw your best bet is probably celery, or whatever
The commands to run the project are as follows:
After entering the file path
screen -S (file name)
python3 main.py
Then press Ctrl A and Ctrl D
file name??
This is how I access the file from a VPS, for example.
yeah but what is the file you want to run in the background