Handles updated flyctl launch toml file (#1211)

This commit is contained in:
Shayne Czyzewski 2023-05-19 11:05:45 -04:00 committed by GitHub
parent 7fbbcfa81d
commit cb26d71947
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,10 @@
# Changelog
## v0.10.6
### Bug fixes
- `wasp deploy fly launch` now supports the latest `flyctl launch` toml file for the web client (which changed their default structure and port).
## v0.10.5
### Bug fixes

View File

@ -70,8 +70,9 @@ async function setupClient(deploymentInfo: DeploymentInfo) {
// This creates the fly.toml file, but does not attempt to deploy.
await $`flyctl launch --no-deploy --name ${deploymentInfo.clientName} --region ${deploymentInfo.region}`;
// goStatic listens on port 8043 by default, but the default fly.toml assumes port 8080.
replaceLineInLocalToml(/internal_port = 8080/g, 'internal_port = 8043');
// goStatic listens on port 8043 by default, but the default fly.toml
// assumes port 8080 (or 3000, depending on flyctl version).
replaceLineInLocalToml(/internal_port = \d+/g, 'internal_port = 8043');
copyLocalClientTomlToProject(deploymentInfo.tomlFilePaths);