empire icon indicating copy to clipboard operation
empire copied to clipboard

rename command does not find application

Open rgabo opened this issue 9 years ago • 2 comments

Renaming an Empire application using emp rename <oldname> <newname> does not work in HEAD.

I wanted to rename a newly created application to match the name of the docker image that will be deployed, but emp throws a 404 Not Found error:

➜  ~  emp apps
foobar      Jun 22 16:28
➜  ~  emp rename foobar bazbat
error: Unexpected error: 404 Not Found

Tried before and after deploying to no avail.

rgabo avatar Jun 22 '15 17:06 rgabo

Hey @rgabo! Currently, Empire doesn't support renaming an application, but we have plans of supporting it. There's some subtleties about renaming, like ensuring that the CNAME for the ELB is updated.

I think for the time being, the emp command should show an error, or we should return a 501 from known endpoints that aren't implemented yet.

ejholmes avatar Jun 22 '15 17:06 ejholmes

Thanks for the quick answer @ejholmes, not a huge issue as it is fairly straightforward to recreate the app (env, domains, ssl). Just wanted to make sure it was noticed.

rgabo avatar Jun 22 '15 17:06 rgabo