TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A better way to deploy Python web apps to production with all dependencies

3 pointsby rishikeerthialmost 5 years ago
In python based web apps be it django or flask or any other frameworks. I am wondering what would be the better way to bundle all the dependencies with our as a zip and deploy it in production servers without the need to connect internet from the production machine. Since I am from java background, I am expecting a build(WAR file in case of J2EE apps) with all necessary dependencies.

2 comments

rgacotealmost 5 years ago
I&#x27;ve recently started using shiv to package apps for internal deployment. Relies on the proper version of Python being installed on the server.<p>Briefcase is another option. It bundles everything, including Python. I&#x27;ve just started playing with it.<p><a href="https:&#x2F;&#x2F;shiv.readthedocs.io&#x2F;en&#x2F;latest&#x2F;" rel="nofollow">https:&#x2F;&#x2F;shiv.readthedocs.io&#x2F;en&#x2F;latest&#x2F;</a> <a href="https:&#x2F;&#x2F;beeware.org&#x2F;project&#x2F;projects&#x2F;tools&#x2F;briefcase&#x2F;" rel="nofollow">https:&#x2F;&#x2F;beeware.org&#x2F;project&#x2F;projects&#x2F;tools&#x2F;briefcase&#x2F;</a>
rwdimalmost 5 years ago
Lately, I have been using Docker Swarm... build containers on a private deployment machine with all dependencies, and deploy them to production machines in a load-balanced, isolated environment that is fault tolerant.<p>Works nicely and I don’t have to worry about subsequent package updates for other apps breaking existing ones.<p>Cheers!