runtime icon indicating copy to clipboard operation
runtime copied to clipboard

"Pull and redeploy" not redeploying (in certain cases)

Open randall-coding opened this issue 1 year ago • 1 comments

I'm building an image like this with my acorn-cli pointing to my acorn.io account.

acorn build -t my_app

Then I deployed my app with this:

acorn run -s my-secrets:my-secrets -n my-app-pro --memory=2Gi

After that I can't seem to pull and redeploy. I will build again, but if I click "Pull and ReDeploy" on the acorn.io UI nothing happens. Same too for the acorn update --pull my-app-pro command.

It seems that on the run command there is an implicit push to an unspecified repo which is perhaps not happening when I use only build or update.

If I've deployed my app this way, is there a way to update the image without deleting and calling run again?

randall-coding avatar Nov 06 '23 04:11 randall-coding

@randall-coding In your case , if you had deployed the app from the image my_app (that you had built) , then building the image my_app again and using acorn update --pull my-app-pro would result in the app being deployed with the new version of the image.

  1. acorn build -t my_app
  2. acorn run -s my-secrets:my-secrets -n my-app-pro my_app --memory=2Gi -> Deploy app withe image my_app
  3. Make changes and build acorn build -t my_app
  4. acorn update --pull my-app-pro

If the app was deployed using the current directory then you can use acorn run --update to update the app.

  1. acorn run -s my-secrets:my-secrets -n my-app-pro --memory=2Gi
  2. Make changes in the current directory
  3. acorn run --update -s my-secrets:my-secrets -n my-app-pro --memory=2Gi --> This will result in app being deployed with the latest changes made in step 2.

sangee2004 avatar Nov 20 '23 20:11 sangee2004