W
Wasp7mo ago
Harish

Setting Fly.io machine configuration using wasp CLI deploy commands

Hi Team, Is it possible to change the default configuration of Fly.io machines using the wasp deploy fly CLI commands? I would like to run my application on a larger machine or a non-shared CPU machine. Below is the configuration of the server instance created by the Wasp deploy Fly CLI commands:
primary_region = "mia"

[http_service]
auto_start_machines = true
auto_stop_machines = true
force_https = true
internal_port = 8_080
min_machines_running = 1
processes = [ "app" ]

[[vm]]
cpu_kind = "shared"
cpus = 1
memory = "1gb"
primary_region = "mia"

[http_service]
auto_start_machines = true
auto_stop_machines = true
force_https = true
internal_port = 8_080
min_machines_running = 1
processes = [ "app" ]

[[vm]]
cpu_kind = "shared"
cpus = 1
memory = "1gb"
3 Replies
kapa.ai
kapa.ai7mo ago
Hi @Harish. 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 provided knowledge sources, there is no direct information about changing the default configuration of Fly.io machines using the Wasp deploy fly CLI commands. However, after running the setup command, Wasp creates two new files in your project root directory: fly-server.toml and fly-client.toml. You can edit these files to further configure your Fly deployments. Wasp will use the TOML files when you run deploy (source (https://wasp-lang.dev/docs/advanced/deployment/cli#setup)). In your case, you might be able to change the machine configuration by editing the fly-server.toml file. However, the specific parameters to change or add are not provided in the knowledge sources. For more detailed information on configuring Fly.io machines, you might want to refer to the official Fly.io documentation or forums. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Harish, 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?
martinsos
martinsos7mo ago
Oh yeah sure! You can modify those toml files if you want, or you can directly send commands to fly with wasp deploy fly cmd <whatever flyctl command here you want> --context client or wasp deploy fly cmd <whatever flyctl command> --context server, depending if you want to run it on the client or on the server. This is same as if you were sending those commands direclty via flyctl, it is just that now wasp will correctly provide client or server name for them. So at the end it wil come do undrestanding how to do this stuff on Fly.
Harish
HarishOP6mo ago
@martinsos : Thanks for the suggestion. Worked like charm. And apologies for the late reply.
Want results from more Discord servers?
Add your server