All Projects → michaelkryukov → Heroku Python Script

michaelkryukov / Heroku Python Script

Licence: mit
Guide for hosting python scripts and applications on Heroku

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Heroku Python Script

Json Server Heroku
Deploy json-server to Heroku & Azure 🆙 🆓
Stars: ✭ 310 (+42.2%)
Mutual labels:  heroku, hosting
heroku-flask-template
A simple, fast and easy-to-deploy Heroku ready flask web app template written in Python.
Stars: ✭ 26 (-88.07%)
Mutual labels:  heroku, python-script
Heroku Telegram Bot
Starter pack to host your Python Telegram Bot on Heroku for free.
Stars: ✭ 183 (-16.06%)
Mutual labels:  heroku, hosting
LocalSupport
A directory of local support services and volunteer opportunities
Stars: ✭ 60 (-72.48%)
Mutual labels:  heroku, continuous-deployment
Haiku
🚀 Instant Heroku deploys from GitHub branches
Stars: ✭ 17 (-92.2%)
Mutual labels:  heroku, continuous-deployment
Websiteone
A website for Agile Ventures
Stars: ✭ 132 (-39.45%)
Mutual labels:  heroku, continuous-deployment
Rocket
Automated software delivery as fast and easy as possible 🚀
Stars: ✭ 217 (-0.46%)
Mutual labels:  heroku, continuous-deployment
Icare
Open Source Carpooling Platform
Stars: ✭ 196 (-10.09%)
Mutual labels:  heroku
Heroku Config
[Utility] Push and pull heroku environment variables to your local env
Stars: ✭ 207 (-5.05%)
Mutual labels:  heroku
Graphql Engine Heroku
Blazing fast, instant realtime GraphQL APIs on Postgres with fine grained access control, also trigger webhooks on database events.
Stars: ✭ 188 (-13.76%)
Mutual labels:  heroku
Imscp
i-MSCP Main Repository
Stars: ✭ 184 (-15.6%)
Mutual labels:  hosting
React Node Example
a minimalist starter repo for React and Node to deploy to heroku
Stars: ✭ 197 (-9.63%)
Mutual labels:  heroku
Go Getting Started
Getting Started with Go on Heroku https://devcenter.heroku.com/articles/getting-started-with-go
Stars: ✭ 210 (-3.67%)
Mutual labels:  heroku
Kuhero
websocket proxy on heroku
Stars: ✭ 192 (-11.93%)
Mutual labels:  heroku
Net Spider
新手小白~~持续更新中〜随意Fork,Star,大佬萌多多issue哦 (目前更新: 1.短视频视频无水印解析(支持超过30多个平台 e.g., 抖音,快手,微博...) 2.bilibili音视频解析🐱‍👓 3.知音漫客图片加密 🔥 4. 世纪佳缘信息👨‍👩‍👧‍👦 5.小鸡词典🐥🐥。。。。。。
Stars: ✭ 212 (-2.75%)
Mutual labels:  python-script
Wflow
🐆 EXPERIMENTAL -- Runs GitHub Actions workflows locally (local) -- Don't run your YAML like a 🐪
Stars: ✭ 187 (-14.22%)
Mutual labels:  continuous-deployment
Clojurenews
Clojure News Web Application - (Hacker News Clone)
Stars: ✭ 217 (-0.46%)
Mutual labels:  heroku
Hackers Tool Kit
Its a framework filled with alot of options and hacking tools you use directly in the script from brute forcing to payload making im still adding more stuff i now have another tool out called htkl-lite its hackers-tool-kit just not as big and messy to see updates check on my instagram @tuf_unkn0wn or if there are any problems message me on instagram
Stars: ✭ 211 (-3.21%)
Mutual labels:  python-script
Java Getting Started
Getting Started with Java on Heroku
Stars: ✭ 206 (-5.5%)
Mutual labels:  heroku
Vuejs Rails Starterkit
Vue.js + Rails Starting Kit GitHub Template to develop Hybrid Mobile Application: https://vuejs-rails-starterkit.herokuapp.com
Stars: ✭ 205 (-5.96%)
Mutual labels:  heroku

Template for hosting python scripts and applications on Heroku

This is a small example of running your script with Heroku. You can run almost any python application with any dependencies.

Getting Started

  1. Download or clone this repository

  2. Register on Heroku

  3. Download and install Heroku CLI

  4. Download and install git

  5. Copy your script or project to this repository's folder

  6. Replace "script.py" with the path to your main executable file in Procfile

    worker: python script.py
    

    If you are getting errors, you can try replace worker with web.

  7. You may select your python version and runtime using runtime.txt. Read how on official heroku page.

  8. If you are using any not built-in modules, you must add them to your requirements.txt. To check which version of the module you have, run pip freeze in the terminal. You will get lines with information about installed modules and their versions in the format like MODULE_NAME==MODULE_VERSION. Add lines with required modules and their versions to your requirements.txt. Don't keep unused modules in requirements.txt. This file should contain every module your application needs. Heroku will install modules from this file automatically.

  9. Open terminal (or do it another way, but I will explain how to do it in the terminal on Ubuntu) and create a git repository.

    1. Initiate git repository

      git init
      
    2. Create heroku application

      heroku create
      
    3. Add, commit and push your code into branch master of the remote heroku.

      git add .
      git commit -m "initial commit"
      git push heroku master
      
  10. Specify the amount of worker that will run your application

    heroku ps:scale worker=1
    
  11. Now everything should be working. You can check your logs with this command

    heroku logs --tail
    
  12. You can open the URL where the script is deployed using the below command (if you are deploying web application)

    heroku open
    
  13. From now on you can use usual git commands (push, add, commit, etc.) to update your app. Every time you push heroku master your app gets redeployed with updated source code

  14. To stop your application scale down the amount of workers with like this

    heroku ps:scale worker=0
    

Prerequisites

Authors

Acknowledgments

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].