I want to confirm the source for my Forge app is the same as what is deployed. Is there a way to download a deployed app OR have the Forge CLI compare your current source to what’s in the cloud?
Welcome to the Atlassian developer community @MichaelM,
No. There isn’t. And there is an opaque step during deployment where your app is “bundled” (by the Forge bundler, of course). If you could download the source code, a diff would reveal your source code is not exactly what’s deployed anyway. Bundling is pretty common for modern web applications because it makes browser downloads simpler and smaller.
Maybe you could explain a bit more about the context of your problem? Why not just rerun forge deploy
? Or, control the deployment process with a CI/CD that could slap a label on your repo at deploy time? Or use forge tunnel
to debug against your local code?
My local git repo got corrupted - I’m trying to find out if my local source code (as I’ve recovered it) matches what is working in my deployed app.