Modify build command

How would I modify the build command so it does a pip install of psycopg2 ?
I was told to remove that package from my requirements.txt and only use it to connect to the postgres db in production.
you put that package in your requirements.txt file and railway's default install command will install all the packages listed in that file
if this is something chatgpt told you, I would recommend stackoverflow instead
no i asked my former teacher and he said this:

"you do not want to use psycopg2 in development its doesn't play nice with an M1, and we only need to to connect to a postgres db, so by installing it separately in production only, we kind of protect ourselves from accidentally installing it in dev"
would you not need psycopg2 to connect to the railway database locally so you can run migrations and seed it?
i don't think so. he was specifically talking about the postgres instance
locally is sqlite
yes but you need to run migrations/seeds on the railway postgres instance too
i have to use the railway cli in order to do that
so ideally, build command would install requirements, install psycopg2 and do flask upgrade and seed
yes you do, but like I've said, that command is ran on your own computer, thus you need to be able to connect to postgres from your own computer
ideally you would do the migration and seed from your computer
also python apps don't really have a build command, you are thinking about nodejs
so i was able to deploy my project with database on render
i really wanted to try railway but it's just giving me too many issues rn
railway deploys your code as is
render has been known to do little monkeypatches to get code to run properly

Looking for more? Join the community!

Recommended Posts
Payment method removalHey, how do I remove my payment method? I opted in for a credit subscriptions but still see my crediDeploying crashedHello, i'm facing a problem when deploying my spring boot application to railway, my application worInternal server error when accessing TypebotI noticed that since yesterday the new installations with the Typebot template present the error IntRAILWAY_PUBLIC_DOMAIN replaces RAILWAY_STATIC_URLHi team, we've been hunting down a bug with our app today, occurring on many PR Environments and it'My Subscription issueHello dear support guys: I found that I have been downgraded to No Subscription.. If my memory is rIs it normal for hello world json to return in 600ms? - GO FIBERHelp setting up a monorepoI'm getting this error when deploying my project. I made sure no other deployments are running, but Deployment and logging issues (Maven)Hello, My program is running fine locally, but when I deploy it with Railway, I start seeing issuesIssues with Postgres DBI don't really understand why I am not seeing any tables in my DB. Seeding works, but the database sversion 'GLIBC 2.29' not foundweird error that seems to be because of my code, but it works on my computer <:bing_shrug:5837915814Use rust nightlyidk how docker works but i cant use the nightly rust dockerfile image for some reasonFix Missing libuuid LibraryHey, I am currently runnig into problems deploying my FastAPI backend after adding a new dependency I can no longer connect to my MySQL database, even after restarting the databaseI'm not sure what my project id is. My link is this: https://railway.app/project/31b9ee92-06cc-44c1-RPC showing forbidden access 403Hi. I've got some crypto related script which pings an RPC server - it works fine locally but on raiHow would I connect my project with the SQL database ?I have a model for users and I would like to populate my production DB with them. How can I do that?Hipaa/socI wanted to confirm if the information on https://railway.app/help is current as the email listed boMemory consumption differenceSame app deployed in docker local and Hw(M1 16gb) consumes 52 mb with no load railway took 74mb can Nextjs 13 Environmental variableHello! I recently installed Nextjs to try out the "new" app directory, because I heard server actioRailway CLI postgresql not installed?I installed the CLI and postgresql on my computer to use pgloader to migrate a mysql db to postgres How do I hook up my frontend correctly./I am able to deploy my backend but my frontend is not working yet. Error: ``` #8 [4/5] RUN npm ru