WaspW
Waspโ€ข3y ago
WWWillems

How to seed production database using fly proxy -a <app_name>

Hi! I've successfully deployed my app to fly.io. Now I'm trying to seed my production database following the guide in this PR: https://github.com/wasp-lang/wasp/pull/1524/commits/baa9c01ce240c94a088de7fba6ac682b7748c98d

But I'm stuck after (successfully) opening the tunnel. The tunnel command says Proxying local port 5432 to remote which looks ok. Problem is the tunnel stays open and I cant enter my next command. How do I open the tunnel in a headless way so I can run the actual seed? I've added the DATABASE_URL to my .env.server file.

It would be nice if the documentation could be updated to include a dedicated part for this. I feel the PR linked above should also be a bit improved with the headless part.

Thanks for all the work you've put in so far. I've really enjoyed using Wasp so far! ๐Ÿ‘
GitHub
Description
This PR aims to resolve the issue #1464 .
Select what type of change this PR introduces:

Just code/docs improvement (no functional change).
Bug fix (non-breaking change which fixes a...
Was this page helpful?