Steve Cook
Steve Cook
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
I was talking with my buddy over coffee this morning - he's the one who recommended Railway - and he knew who you are. You're omnipresent 😂
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
Thanks for all the help 🤘
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
and nix the nixpack toml
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
yep, I'll just update the Dockerfile
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
I'll read up on Caddy - I was cheating and using your files haha 😆
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
ah gotcha - that sounds good. great idea.
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
I have some conditionals in the Dockerfiles to run different commands based on the environment
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
I was able to post to the backend with curl, though
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
well, can't get the client to serve - just get a 404
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
and yes, both services have their own Dockerfile
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
backend is working fine, just can't get the two to work together
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
yes - it is a monorepo but I have them split into separate services - may need to revisit that.
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
Ah gotcha. Docker has been part of my dev environment forever - might be hard to break that one. But I'll see what I can do. Can't get it to work in prod anyway (even though the log says listening on localhost:8002) so I guess it can't hurt to try something different.
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
Hey, @Brody - I removed serve from my client service and copied Caddyfile and nixpacks.toml into my repo. I'm getting ready to try a deployment. I have the Dockerfile - do I not need to do anything to run it in production or will those new files do everything I need (I'm running yarn dev for my local environment)?
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
ok cool
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
Are you exporting the dataSource in database.config.ts?
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
I have it set to use ./dist for production, I'm guessing you do, as well. So you should be linking to your .js version in /dist (your database.config.js, that is), or wherever you're exporting the data source.
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
and /client
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
Root directory of the service, e.g., /server
88 replies
RRailway
Created by Steve Cook on 2/5/2024 in #✋|help
TypeORM migrations
Also you need to make sure you're exporting the dataSource in your ormconfig
88 replies