spike/hello-rust
The app name in these example apps is only for illustrative purposes. It shouldn't matter what name is in there.
The app name in these example apps is only for illustrative purposes. It shouldn't matter what name is in there.
I ended up doing this for a couple of reasons:
Can't use config as-is, as it doesn't recognise the App
➜ hello-rust git:(main) flyctl init
Update available 0.0.210 -> 0.0.212
Update with flyctl version update
***An existing configuration file has been found.
? Overwrite file '/Users/mxm/Code/github/hello-rust/fly.toml' No
➜ hello-rust git:(main) flyctl deploy --remote-only
Update available 0.0.210 -> 0.0.212
Update with flyctl version update
Deploying hello-rust
==> Validating app configuration
Error not possible to validate configuration: server returned Could not resolve App
If doing flyctl init from scratch and trying to name it the same thing, it claims the name is taken:
➜ hello-rust git:(main) ✗ flyctl init
Update available 0.0.210 -> 0.0.212
Update with flyctl version update
? App Name (leave blank to use an auto-generated name) hello-rust
Automatically selected personal organization: Mike Moran
? Select builder: Dockerfile
(Do not set a builder and use the existing Dockerfile)
Error Validation failed: Name has already been taken
So, I ended up using init to create a unique name and then copying over the original fly.toml and changing it to use the same unique name
@jeromegn : btw, note that I am not wanting to merge anything into the parent repo for this PR, it's just for my own uses (github created a fork when I accidentally opened up an editor on the main repo, so I am just re-using it here for convenience)