hello-rust icon indicating copy to clipboard operation
hello-rust copied to clipboard

spike/hello-rust

Open mikemoraned opened this issue 4 years ago • 3 comments

mikemoraned avatar May 04 '21 13:05 mikemoraned

The app name in these example apps is only for illustrative purposes. It shouldn't matter what name is in there.

jeromegn avatar May 04 '21 13:05 jeromegn

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

mikemoraned avatar May 04 '21 20:05 mikemoraned

@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)

mikemoraned avatar May 04 '21 20:05 mikemoraned