Setting up a local environment

For a variety of reasons I typically like to develop completely locally. I'm using the Next.js / Prisma template and the docs seem to suggest that I should just create a "dev" environment in Railway but I'd prefer to spin up a local postgres instance in a docker container. I see that the prisma file has a way to route to a local db instance, but was wondering if there's a Railway recommended to setup this type of environment with the CLI so that I don't have to manually be flipping this string.
Project ID: N/A
theres nothing like that tmk u could add some logic to ur code so it looks for a different env var if the ENVIRONMENT variable isn't production or smth like that
Best way to do this would be to setup your local instance, and then take that DATABASE_URL and set it on your service in the dev environment, if that makes sense Would love to make this better over time but that's where it's at ATM
ah gotcha, thanks for the responses, yeah so basically set the DATABASE_URL in the dev instance on the railway webapp to point to a localhost instance right?

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
Questions about automatic deployment with a new PR.Hi, I'm waiting for my PR to be deployed automatically on Railway. The PRs were deployed on the firsDocker DATABASE_URLI have a PostgreSQL database and an application built user docker. How would I use the connection urExpress server to subdomainHi I have a backend code that uses express.js and I would like to deploy this app to my subdomain toQuestions about pricingHi, I’m a new Railway user that primarily uses it for Discord bots. I was wondering, do the free plGoogle oauth redirect -- nginx 404I've implemented google oauth, but redirects are broken due to the way the proxy is setup on RailwayDo I need SSL Certificates?My app is up and running with Django. When I attempt to enable the secure SSL redirect setting in DjBandwidth limitsI don't understand how much bandwidth I have on a developer plan and how it is priced. I am currentlRuby app crashing because of missing (bundle ran)Recently we added some google API gems to our Ruby app and we have seen front-end and back-end serviDeploy failed and it's weirdHi, for some reason I am getting this when deploying: ``` #13 1.852 django.db.utils.OperationalErroCan't build my Django project.I saw tutorial on Youtube which I followed. I created Procfile (see attached photos) and requirmentsread ECONNRESET on my databaseConnections and queries to my database suddenly stoped working, and I have no idea why.Is it possible to unlink the credit card for a credit-based sub?Hello, I'm liking Railway so far (despite still not being able to get chromedriver/google-chrome insstrapi + cloudinary bulk upload crashLocally I have Strapi running, uploading images to Cloudinary, bulk uploads all work fine. Same repSpawning RQ Worker during deploy.Im running in to the problem of not knowing how to launch the workers on deployment automatically. NDeploy Codeigniter 4 to railway.appdoes anyone have a tutorial how to deploy codeigniter to railway ? I have tried several times but faWhere should issues be reported?I reported several issues in this discord group, but it seems that their communication went stale.