Skip to content

ADGSTUDIOS/PythonHerokuTemplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Configuration for Python - PYODBC

To get you started writing your Microsoft SQL Server Application powered by Python/PyODBC and unixODBC.

Introduction

Why did i make this templete for your? I was working on a Flask Application for one of my clients and it was a pain and nightmare to configure it.

You know people make things so hard when it is a really simple solution hope this repo will help you to get your work done ASAP

Getting Started

Firstly you need to clone this repo / fork my repo.

Mods

in requirements.txt
this is used for your python packages to be installed append a line for the pip install package
in Aptfile
this is used for your linux packages to be installed using apt-get

append a line for the package you want to install
in pages
your HTML files go there
in static
your js,images,css,scss etc goes in there

Deployment

  • Add the code to app.py which you are bootstrapping from else edit Proc to your app file
  • Fire up GitHub and upload the files to your repo.
  • Now in Heroku - Create a new Application
  • Under the deployment tab
 - Select GitHub Deployment Method - Link up the repo to your Heroku
Final Step
In settings
  • Add the buildpacks exactly in that order in the photo below

image

  • If you want to copy and paste
https://github.com/heroku/heroku-buildpack-apt.git
https://github.com/heroku/heroku-buildpack-python.git
https://github.com/matt-bertoncello/python-pyodbc-buildpack.git
heroku/python

Changelog


Date Changes
2021/11/16 Added Initial Files

Build your App and happy coding.

Guide crafted with <3 from ADG

Author: Ashlin Darius Govindasamy

Copyright (c) ADGSTUDIOS : https://adgstudios.co.za

About

Template to get started in the Python, Django Stack crafted with <3 by ADG

Resources

License

Stars

Watchers

Forks

Packages

No packages published