Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

debug actions after "aio app deploy"

Avatar

Community Advisor

I gave an issue somewhere in my action after "aio app deploy". the action is working fine on local "aio app run", but not in deploy.

 

any chance I can see the debug of the action somewhere when app is deployed?

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @Urs_Boller, actions are essentially invoked in the same manner after you do `aio app run` and `aio app deploy`. Only difference is that if you change something in the code and save while in run mode, it automatically re-deploys the action.

Coming to your question about debugging, the logs should be the same whether you run or deploy the action. Some useful commands for debugging:

  • `aio app logs`: show the logs of the most recently invoked action
  • `aio runtime activation list`: list 20 latest invocations
  • `aio runtime activation get ID`: get detailed info about the invocation. ID is obtained from the list above
  • `aio runtime activation logs ID`: get the logs of an invocation
4 Replies

Avatar

Correct answer by
Employee

Hi @Urs_Boller, actions are essentially invoked in the same manner after you do `aio app run` and `aio app deploy`. Only difference is that if you change something in the code and save while in run mode, it automatically re-deploys the action.

Coming to your question about debugging, the logs should be the same whether you run or deploy the action. Some useful commands for debugging:

  • `aio app logs`: show the logs of the most recently invoked action
  • `aio runtime activation list`: list 20 latest invocations
  • `aio runtime activation get ID`: get detailed info about the invocation. ID is obtained from the list above
  • `aio runtime activation logs ID`: get the logs of an invocation

Avatar

Community Advisor
thanks a lot - will try those commands...

Avatar

Community Advisor
HI @duypnguyen those commands are really helpful, thanks a lot!

Avatar

Employee
Hi Urs - thanks for the update. Glad to hear!