2 years ago
Deployment id:- 4fd045c7-ba05-4851-96e6-458e0541bb2b
Trying to deploy a flask app and iam facing this issue while deploying.
96 Replies
2 years ago
build logs please
2 years ago
please remove all pip based commands that you have set yourself
2 years ago
put your start command back please
2 years ago
please remove all pip based commands that you have set yourself
2 years ago
no need for the pings, we are the only two here
here is my custom build command pip install gunicorn && pip install -r requirements.txt && python -m pip install pywin32 && gunicorn templates.app:app
2 years ago
please remove all pip based commands that you have set yourself
2 years ago
why do you think you need a build command?
otherwise iam getting module error build command not found if not specified
2 years ago
you are getting errors regardless, please remove all pip based commands that you have set yourself
2 years ago
you need a start command
2 years ago
as mentioned before, no pip based commands please, that would leave you with gunicorn templates.app:app
2 years ago
okay good, next step
2 years ago
add this nixpacks.toml file to your project
[phases.setup]
aptPkgs = ['...', 'python3-dev', 'default-libmysqlclient-dev', 'build-essential', 'pkg-config']2 years ago
these logs dont indicate that you added the nixpacks.toml file
2 years ago
please show me how/where you added the file
2 years ago
is that the correct repo
2 years ago
did you push to the correct branch
2 years ago
yes
2 years ago
im checking
2 years ago
what do you have the root directory set to in the service settings?
2 years ago
yes
2 years ago
what does the providers section say?
2 years ago
show me the source settings?
2 years ago
delete the service and deploy it again
2 years ago
i suggest moving to mysql-connector-python instead
2 years ago
you are not using mysql-connector-python
2 years ago
2 years ago
yes but you are also installing the unneeded packages
2 years ago
yes of course
2 years ago
indeed
2 years ago
that's the same screenshot?
2 years ago
what are you trying to show me?
[2024-02-24 06:20:54 +0000] [7] [INFO] Starting gunicorn 19.7.1
[2024-02-24 06:20:54 +0000] [7] [INFO] Listening at: http://0.0.0.0:6797 (7)
[2024-02-24 06:20:54 +0000] [7] [INFO] Using worker: sync
/root/.nix-profile/lib/python3.8/os.py:1023: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
return io.open(fd, *args, **kwargs)
[2024-02-24 06:20:54 +0000] [11] [INFO] Booting worker with pid: 11
2 years ago
yes that's the same text that's in your screenshot
2 years ago
please read that blue banner
this one http://0.0.0.0:6797/ (7)
2 years ago
please look at the blue banner
2 years ago
no problem
while trying to call via postman its not giving the expected result as it was showing running on my local
2 years ago
because your code is trying to connect to a database that you have running locally, you need to run a database on railway and have your code connect to that instead