Learning Center
Learning Center
  • HTML
  • CSS
  • JAVASCRIPT
  • Bootstrap
  • React
  • jQuery
  • NodeJs
  • Sql
  • MySql
  • Python
  • OpenVPN Setup
  • Log In
Coding Choice Home About Contact ☰

  1. You are here
  2. Home
  3. python
  4. deployment_and_best_practices

Sidebar
  • Introduction
  • Python Basics
  • Data Structures in Python
  • Functions and Modules
  • Object-Oriented Programming
  • File Handling
  • Exception Handling
  • Advanced Python Concepts
  • Working with Databases
  • Web Development with Python
  • Email Client with Python
  • Data Science with Python
  • Machine Learning with Python
  • Automation with Python
  • Testing in Python
  • Deployment and Best Practices
  • Share via
    • Share via...
    • Twitter
    • LinkedIn
    • Facebook
    • Pinterest
    • Telegram
    • WhatsApp
    • Yammer
    • Reddit
    • Teams
  • Send via e-Mail
  • Print
  • Permalink

Deployment and Best Practices

Virtual Environments

python -m venv myenv
source myenv/bin/activate  # Linux/Mac
myenv\Scripts\activate  # Windows

Deploying a Flask App on Heroku

heroku create myapp
git push heroku main