seiya2323
seiya2323
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
Yes, it did, you helped me a ton, i appreciate it a lot Brody
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
Finally, I tested it, and it's working omg, took so long, but going over the documentation like you mentioned helped. I was too lazy to go over it but after taking my time, i finally got it to work. I'm now running my knex in production only
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
Thank you so much
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
So i went over it, it's basically the same thing. 'Knex run:seed", "knex migrate:latest".
So I know you said railway run (and the docs) is for running the CLI locally, but how can i run these same commands to my postgresDB on Railway? I think it's set up right now, just missing the last step adding migrations/seeds to my railway db. Sorry for all the back and forth, this has been a struggle for me lol i understand if there's not much you can assist with although you did guide me in the right direction and was able to add a service now 🙂
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
gahh, okay, let me go to the knex docs
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
Okay, I'm going over it, i see Prisma but not Knex although I might follow along with this: https://blog.railway.app/p/expressjs-with-postgresql I think I get the whole 'service' part now, needs to be within my postgrestDB. Now the part I need to figure out is how to run those migrations/seeds into my prod DATABASE_URL service
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
Back, I see what happened there. I added it manually but technically all I needed to do was let the autocomplete dropdown add the variable instead. Now that I've added it, i linked both the db and the api project, i ran the service but i still can't run my migrations. So now that I've added the reference variable the correct way, what would be the next step on my end?
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
gonna take a lunch, brb mildpanic
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
2
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
If you are referring to JWT_DB, it says 2 services
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
Okay I tried i wasn't able to link them, i might as well delete them and start from scratch again lol. Then create a postgresDB, and add my service from within there? I tried looking up stuff online, but when I try to link my project and then service it just wont show.
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
I thought I could create the postgrest DB then use the DATABASE_URL within my project / api
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
ahhh
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
98 replies
RRailway
Created by seiya2323 on 6/9/2023 in #✋|help
How to run migrations/seeds with Railway
This a lot more advanced for my skillset hehe but am learning. Seems like it takes a little more setup to get it up and running. So if I wanted to add a service, what would be my next step? I did go on their docs, but it says to go to a service and create a variable, which I thought I did, but that was not it. aww man i feel like such a noob but then again, im trying to break into tech and would be good to know how to troubleshoot problems like this
98 replies