{"id":21184862,"url":"https://github.com/comhendrik/pythonherokuservertutorial","last_synced_at":"2026-05-18T22:09:01.231Z","repository":{"id":157354947,"uuid":"546205212","full_name":"comhendrik/PythonHerokuServerTutorial","owner":"comhendrik","description":"Tutorial to set up a heroku webpage","archived":false,"fork":false,"pushed_at":"2022-10-05T18:06:05.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T12:46:55.493Z","etag":null,"topics":["flask","heroku","python"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/comhendrik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-05T17:56:04.000Z","updated_at":"2023-05-12T10:18:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6b54c49-e788-4d88-b642-66d58650fac8","html_url":"https://github.com/comhendrik/PythonHerokuServerTutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comhendrik%2FPythonHerokuServerTutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comhendrik%2FPythonHerokuServerTutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comhendrik%2FPythonHerokuServerTutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comhendrik%2FPythonHerokuServerTutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/comhendrik","download_url":"https://codeload.github.com/comhendrik/PythonHerokuServerTutorial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243639414,"owners_count":20323505,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","heroku","python"],"created_at":"2024-11-20T18:11:48.291Z","updated_at":"2026-05-18T22:09:01.190Z","avatar_url":"https://github.com/comhendrik.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"First, make sure you have the Heroku CLI installed in addition to git.\u003cbr/\u003e\nCreate a virtual environment in the directory with:\n\n```\npython3 -m venv \u003cvenvName\u003e\n```\n\nand activate it with\n```\n. \u003cvenvName\u003e/bin/activate\n```\n\nYou will use a gunicorn production server and the Flask Framework to build your Python Server. So you need to install all Frameworks with:\n\n```\npip install -r requirements.txt\n```\n\nor install them seperately with:\n\n```\npip install \u003cframeworkname\u003e\n```\n\nYou need a Procfile located in the root directory. I already added it to the root directory so you don't need to create it on your own. It contains everything you need to run a gunicorn server on heroku.\u003cbr/\u003e\nNow run:\n```\ngit init\n```\nThe git init command isn't necassary because you already have a repository after downloading but you need to include when you start from scratch\n```\ngit add .\ngit commit -m \"\u003cyour commit message\u003e\"\n```\nYou are ready for the preperations on your local directory.\u003cbr/\u003e\nWe are starting with the deployment on heroku:\nRun and follow the instructions:\n```\nheroku login\n```\nYou need to create a app with:\n```\nheroku create \u003cappname\u003e\n```\n(if you don't provide appname, heroku creates a random name.)\u003cbr/\u003e\nTo give heroku acces to your git repo run:\n```\nheroku git:remote \u003cappname\u003e\n```\nNow is the time to push your repo to heroku with(heroku will automatically build the application and you can visit it under https://appname.herokuapp.com/test):\n```\ngit push heroku master\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomhendrik%2Fpythonherokuservertutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomhendrik%2Fpythonherokuservertutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomhendrik%2Fpythonherokuservertutorial/lists"}