integrating quart webapp

i want to integrate a quart webapp that is connected to a telegram bot and is started with the telegram bot using subprocess i am not able to get it running i saw there is a flask example but not a quart example
17 Replies
Percy
Percy2y ago
Project ID: ddec97c0-46c0-49c3-bdb1-9d7517d1147b
JustinMauriceM
JustinMauriceMOP2y ago
ddec97c0-46c0-49c3-bdb1-9d7517d1147b
Brody
Brody2y ago
what issues are you running into?
JustinMauriceM
JustinMauriceMOP2y ago
it says that it is serving the dapp but when i am genreating a domain it says nothing hre i am starting the quart app like this in the main function of the bot main.py so when the main,py is started the app.py is also started: quart_app_process = subprocess.Popen(["python", "app.py", "--port", "420"]) the bot aswell as the server side database functions are working without problems but it is exposing the webapp right
Brody
Brody2y ago
quart_app_process = subprocess.Popen(["python", "app.py", "--port", os.getenv("PORT", "420")])
quart_app_process = subprocess.Popen(["python", "app.py", "--port", os.getenv("PORT", "420")])
try that instead
JustinMauriceM
JustinMauriceMOP2y ago
that helped thank you now i see a diffrent problem i have a folder called static in which i have a folder called images in which the images for the webapp are stored localy they arent populated
JustinMauriceM
JustinMauriceMOP2y ago
where is standing banner should be a image
Brody
Brody2y ago
i dont see how this is a railway issue tbh
JustinMauriceM
JustinMauriceMOP2y ago
when deployed locally they are there
JustinMauriceM
JustinMauriceMOP2y ago
/structure
Brody
Brody2y ago
doesn't mean its an issue with railway
JustinMauriceM
JustinMauriceMOP2y ago
but with what than
Brody
Brody2y ago
absolutely no clue at this point, ive never even heard the word "quart" before what start command does railway use to start your app
JustinMauriceM
JustinMauriceMOP2y ago
no the quart app works perfectly now its not populating the graphics from the directory and the start command is the one you send me
Brody
Brody2y ago
what status code do you get from the image requests
JustinMauriceM
JustinMauriceMOP2y ago
no error code recieved but i figured it out the solution was to switch from local hosting to online hosting of the graphics #
Brody
Brody2y ago
sounds good
Want results from more Discord servers?
Add your server