Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi,
I have an app on App Platform. It is gathering custom logs on local files. Every time I deploy the app, the log files are destroyed (I know this is expected behavior).
I do not want to forward my logs (to Papertrail, Datadog, or Logtail). Instead, I just want to upload them to an online storage service anytime the app redeploys, and I need this to happen BEFORE the redeploy starts and the local files are destroyed. I have coded all the upload functionality into a script that can be called from npm.
My question: Is there a way of telling App Platform to run a certain command before it destroys the local files on a redeploy? I can do it manually via the console but it’s extremely tedious to have to do it every time I merge in a PR or redeploy the app.
A.K.A is there a way of adding a pre-deploy step to the “deploy” pipeline that uses the currently deployed app?
I was looking into Workers, but it seems like they need a separate source, whereas I just want to run a command from within my existing main app component (so it can access the logs).
Thanks for your help!
jhonnydepp12
dolphinnn
Vaishnavi Vundyala
016512ea60864da0867e5280f293de
Peter Monadjemi
Prince7hakur
devjk1
fc9acbfbc3124cbf8df28a1c5c5cdb
ab871885551143798f41908c709271
gouskova
Saivion Services