R
Railway13mo ago
Alragi

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.
52 Replies
Percy
Percy13mo ago
Project ID: fadd4c5c-74c0-4fd7-a209-03a8f7029c8d
Alragi
Alragi13mo ago
fadd4c5c-74c0-4fd7-a209-03a8f7029c8d
MantisInABox
MantisInABox13mo ago
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
Alragi
Alragi13mo ago
Can you guide me to create a Dockerfile? I will be grateful to you.
Brody
Brody13mo ago
you could also use parallel with nixpacks what are the two commands you want to run at the same time
Alragi
Alragi13mo ago
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?
MantisInABox
MantisInABox13mo ago
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
josh
josh13mo ago
what kind of background process is it?
Alragi
Alragi13mo ago
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?
Brody
Brody13mo ago
also tell us the commands you would run locally to get your project all up and running
josh
josh13mo ago
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
Alragi
Alragi13mo ago
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
Brody
Brody13mo ago
file name??
Alragi
Alragi13mo ago
This is how I access the file from a VPS, for example.
Brody
Brody13mo ago
yeah but what is the file you want to run in the background
Want results from more Discord servers?
Add your server