Skip to content

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

License

Notifications You must be signed in to change notification settings

ADGSTUDIOS/pyodbc-heroku-config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 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.

Once done with that follow these steps

* Change your connection string in conn to your database - I filled in the connection string for you i made that into a templete for your :)

Troubleshooting

if you see Connection Failed - Check your connection string and Database else, if successful congratulations you have done the most important step so far.

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

Build your App and happy coding.

Guide crafted with <3 from ADG

Author: Ashlin Darius Govindasamy


Date Changes
2021/08/22 Added Initial Files

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%