W
Wasp•2mo ago
Kynetix

Fly.io deploy server changes only

I'm hosting my Opensaas on Fly.io, and I've recently updated the middlewareConfig for CORS. Do I need to deploy the entire application by running "wasp deploy fly deploy", or is it possible to just deploy the server?
4 Replies
kapa.ai
kapa.ai•2mo ago
Hi @Kynetix. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the available knowledge sources, when using the Wasp CLI for Fly.io deployment, the command wasp deploy fly deploy will push both your client and server live. There is no mention in the official documentation of a way to deploy only the server using the Wasp CLI; the deploy command always updates both the client and server together. If you want to update only the server, you would need to use the manual deployment process. This involves building your app with wasp build, navigating to the .wasp/build directory, and then running flyctl deploy --remote-only --config ../../fly.toml. This command will deploy just the backend (server) of your Wasp app to Fly.io, without affecting the client. This approach is described in the manual deployment documentation:
While still in the .wasp/build/ directory, run:
flyctl deploy --remote-only --config ../../fly.toml
flyctl deploy --remote-only --config ../../fly.toml
This will build and deploy the backend of your Wasp app on Fly.io to https://<app-name.fly.dev> 🤘🎸
Deploy to a Fly.io App So, if you only want to deploy server changes (such as your updated CORS middleware), use the manual process above. The Wasp CLI does not currently support deploying only the server with a single command. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Kynetix, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Carlos
Carlos•2mo ago
ignore the bot, wasp deploy fly deploy --skip-client is what you're looking for 😉
Kynetix
KynetixOP•2mo ago
Thanks, man. I'll give it a shot. And I assume that to deploy client only, it is --skip-server?
Carlos
Carlos•2mo ago
yep

Did you find this page helpful?