{"id":13840561,"url":"https://github.com/CleverCloud/flask-example","last_synced_at":"2025-07-11T09:32:14.838Z","repository":{"id":36941197,"uuid":"41248632","full_name":"CleverCloud/flask-example","owner":"CleverCloud","description":"Run Flask on Clever Cloud","archived":false,"fork":false,"pushed_at":"2015-08-23T12:39:34.000Z","size":152,"stargazers_count":5,"open_issues_count":1,"forks_count":43,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-08-25T12:01:13.763Z","etag":null,"topics":["clevercloud-example","flask","python"],"latest_commit_sha":null,"homepage":"","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/CleverCloud.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}},"created_at":"2015-08-23T12:21:49.000Z","updated_at":"2024-08-25T12:01:13.763Z","dependencies_parsed_at":"2022-07-06T02:01:21.312Z","dependency_job_id":null,"html_url":"https://github.com/CleverCloud/flask-example","commit_stats":null,"previous_names":["clevercloud/demo-flask"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleverCloud%2Fflask-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleverCloud%2Fflask-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleverCloud%2Fflask-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleverCloud%2Fflask-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CleverCloud","download_url":"https://codeload.github.com/CleverCloud/flask-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225712498,"owners_count":17512412,"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":["clevercloud-example","flask","python"],"created_at":"2024-08-04T17:00:50.402Z","updated_at":"2024-11-21T10:30:24.556Z","avatar_url":"https://github.com/CleverCloud.png","language":"Python","readme":"# Flask Demo\n\n\nThis is a small Flask app that replies with a header dump to any request. \n\n\nYou can deploy this application as is on Clever Cloud:\n\n```bash\ngit remote add clevercloud {your-clever-cloud-endpoint}\ngit push clevercloud master\n```\n\nAnd it will do the trick.\n\nWe demonstrate several Clever Cloud possibilities in here:\n\n## Choose python version\n\nWe have a python_version file in the clevercloud repository that\ncontains \"3\". This will select the latest python 3 version installed (at the time of\nthis writing, 3.4). Doc here:\n[https://www.clever-cloud.com/doc/python/python_apps/#use-python-3](https://www.clever-cloud.com/doc/python/python_apps/#use-python-3)\n\n## Build app in a subfolder\n\nIn the `clevercloud/python.json` file, we have the\n\"build\".\"folder\" field that points to the \"app\" folder. We will build \u0026 run the app\nfrom this \"app\" folder.\n\n## Static files\n\nWe set up in `clevercloud/python.json` a \"static\" folder: everything in\nthat folder will be served statically. Note that the static folder will be the root of\nstatic files requests. In this example, to get to Cat.svg which is in the \"s\" folder in\nthe clevercloud/static folder, you need to request \"http://{yourdomain}/s/Cat.svg\".\n\nYou can also see that \"s\" is a link to the static folder at the root of the app. It's just\nto show that you can do symlinks.\n\n## Run the app\n\nAs explained in\n[https://www.clever-cloud.com/doc/python/python_apps/#select-your-module](https://www.clever-cloud.com/doc/python/python_apps/#select-your-module) \nwe ask Clever Cloud to run the \"app\" Flask application defined in the \"hello.py\" file. So\nthe \"module\" field is \"hello:app\".\n","funding_links":[],"categories":["Examples"],"sub_categories":["Python"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCleverCloud%2Fflask-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCleverCloud%2Fflask-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCleverCloud%2Fflask-example/lists"}