DON'T COMPRESS Flask web app

savemightlife 26 Reputation points
2021-04-29T15:17:28.023+00:00

When I deploy Flask web app I don't want Azure to compress my web app into output.tar.gz
How can I do that ?
I have been searching for hours and still couldn't figure this out.
Thank You

11:14:58 AM Preparing output...
11:14:58 AM Copying files to destination directory '/tmp/_preCompressedDestinationDir'...
11:14:59 AM Done in 1 sec(s).
11:14:59 AM Compressing content of directory '/tmp/_preCompressedDestinationDir'...
11:15:03 AM Copied the compressed output to '/home/site/wwwroot'

Also, I can't set CompressDestinationDir="false" in my oryx-manifest because it keep reverting back everytime I deploy.

EDIT: output from local git deployment:

remote: Deploy Async        
remote: Updating branch 'master'.        
remote: Updating submodules.        
remote: Preparing deployment for commit id 'beaca9d3d1'.        
remote: Repository path is /home/site/repository        
remote: Running oryx build...        
remote: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx        
remote: You can report issues at https://github.com/Microsoft/Oryx/issues        
remote: 
remote: Oryx Version: 0.2.20210225.2, Commit: f7b557f29a83aa078cc94c0056e7337c07f14271, ReleaseTagName: 20210225.2        
remote: 
remote: Build Operation ID: |nwb6LySQp0s=.b51b52eb_        
remote: Repository Commit : beaca9d3d1e11cbd854db0a79d8c262e5c6b2d11        
remote: 
remote: Detecting platforms...        
remote: Detected following platforms:        
remote:   python: 3.8.6        
remote: 
remote: Using intermediate directory '/tmp/8d90b92411aee5a'.        
remote: 
remote: Copying files to the intermediate directory...        
remote: Done in 1 sec(s).        
remote: 
remote: Source directory     : /tmp/8d90b92411aee5a        
remote: Destination directory: /home/site/wwwroot        
remote: 
remote: Python Version: /opt/python/3.8.6/bin/python3.8        
remote: Python Virtual Environment: antenv        
remote: Creating virtual environment...        
remote: Activating virtual environment...        
remote: Running pip install...        
remote: Preparing output...        
remote: 
remote: Copying files to destination directory '/tmp/_preCompressedDestinationDir'...        
remote: Done in 175 sec(s).        
remote: Compressing content of directory '/tmp/_preCompressedDestinationDir'...        
remote: Copied the compressed output to '/home/site/wwwroot'        
remote: Removing existing manifest file        
remote: Creating a manifest file...        
remote: Manifest file created.        
remote: Done in 712 sec(s).        
remote: Running post deployment command(s)...        
remote: Triggering recycle (preview mode disabled).        
remote: Deployment successful.        
remote: Deployment Logs : ...
Pushing to https://iumientts.scm.azurewebsites.net:443/iumientts.git
To https://iumientts.scm.azurewebsites.net:443/iumientts.git
 * [new branch]      master -> master
updating local tracking ref 'refs/remotes/azure/master'
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,953 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2021-04-29T23:52:42.973+00:00

    Hi @savemightlife ,

    You could use local git deploy or GitHub actions. These should just copy the artifacts from the repo and run the build the commands per the selected runtime.

    Simply curious though, are experiencing an issue when your app code is compressed?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.