{"id":13769690,"url":"https://github.com/MasoniteFramework/deploy","last_synced_at":"2025-05-11T02:33:17.414Z","repository":{"id":96754818,"uuid":"141224170","full_name":"MasoniteFramework/deploy","owner":"MasoniteFramework","description":"Deployment package for Masonite","archived":true,"fork":false,"pushed_at":"2019-01-18T02:51:17.000Z","size":15,"stargazers_count":3,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-01T11:22:27.627Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/MasoniteFramework.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}},"created_at":"2018-07-17T03:08:03.000Z","updated_at":"2023-01-28T04:30:51.000Z","dependencies_parsed_at":"2023-07-20T23:46:00.017Z","dependency_job_id":null,"html_url":"https://github.com/MasoniteFramework/deploy","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/MasoniteFramework%2Fdeploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasoniteFramework%2Fdeploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasoniteFramework%2Fdeploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasoniteFramework%2Fdeploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MasoniteFramework","download_url":"https://codeload.github.com/MasoniteFramework/deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213832258,"owners_count":15644968,"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":[],"created_at":"2024-08-03T17:00:30.504Z","updated_at":"2024-08-03T17:02:27.244Z","avatar_url":"https://github.com/MasoniteFramework.png","language":"Python","readme":"# deploy\nDeployment package for Masonite\n\n# Instructions\n\n## Heroku CLI Tool\n\nMake sure you have the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli) tool. This package is simply a wrapper about several commands\n\n## Installation\n\ninstall the package:\n\n```\n$ pip install masonite_deploy\n```\n\nThen add the Service Provider to your `PROVIDERS` list:\n\n```python\nfrom masonite_heroku.providers import DeployProvider\n\n...\n\nPROVIDERS = [\n    # Framework Providers\n    AppProvider,\n    SessionProvider,\n    RouteProvider,\n    # 'entry.providers.ApiProvider.ApiProvider',\n    StatusCodeProvider,\n    \n    ...\n    # Third Party Providers\n    DeployProvider, # Here\n    ...\n]\n```\n\nYou now have access to several new commands. You can see your command by running `craft` and looking under the `heroku` namespace.\n\n## Setting Up\n\nFirst you will need to create `Procfile` in the root of your project (where wsgi.py is located) and put this into it:\n\n```\nweb: gunicorn -w 2 wsgi:application\n```\n\nThen add `masonite-cli` and `gunicorn` and `psycopg2` (or `psycopg2-binary`) and this package (`masonite_deploy`) to your requirements.txt:\n\n```\nwaitress==1.1.0\nmasonite==2.0.11\n\n...\nmasonite_cli\ngunicorn\npsycopg2-binary\nmasonite_deploy==0.0.1\n```\n\nLastly, commit to your origin master branch.\n\n# Usage\n\n**This package is still in development and you may experience bugs**\n\n## Deployment\n\nIf you have everything above configured then we can deploy with a single command:\n\n```\ncraft heroku:deploy --app nameofapp\n```\n\nLet the command run and provision your app\n\n## Configs\n\nIt's a little annoying to handle configuration files with Heroku if you are used to them being local so you can grab all the configuration variables\nin Heroku and add them to a local environment file:\n\n```\n$ craft heroku:config --get\n```\n\nThis will add all the variables of your heroku app to a `.env.production` file.\n\nYou can do the opposite by using:\n\n\n```\n$ craft heroku:config --set\n```\n\nThis will take all the environment variables and set them into Heroku\n","funding_links":[],"categories":["Packages"],"sub_categories":["Official Packages"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMasoniteFramework%2Fdeploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMasoniteFramework%2Fdeploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMasoniteFramework%2Fdeploy/lists"}