{"id":20619761,"url":"https://github.com/twtrubiks/deploying-flask-to-openshift","last_synced_at":"2025-04-15T12:13:06.585Z","repository":{"id":84518917,"uuid":"80723443","full_name":"twtrubiks/Deploying-Flask-To-OpenShift","owner":"twtrubiks","description":"Deploying a Flask App To OpenShift Tutorial 📝 ","archived":false,"fork":false,"pushed_at":"2017-02-02T13:15:53.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T12:12:29.516Z","etag":null,"topics":["deploy","flask","openshift","python","ssh-key","tutorial"],"latest_commit_sha":null,"homepage":null,"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/twtrubiks.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":"2017-02-02T12:38:33.000Z","updated_at":"2021-12-10T05:26:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"502c9487-87c7-452b-af59-389911020db1","html_url":"https://github.com/twtrubiks/Deploying-Flask-To-OpenShift","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/twtrubiks%2FDeploying-Flask-To-OpenShift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twtrubiks%2FDeploying-Flask-To-OpenShift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twtrubiks%2FDeploying-Flask-To-OpenShift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twtrubiks%2FDeploying-Flask-To-OpenShift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twtrubiks","download_url":"https://codeload.github.com/twtrubiks/Deploying-Flask-To-OpenShift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249067779,"owners_count":21207396,"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":["deploy","flask","openshift","python","ssh-key","tutorial"],"created_at":"2024-11-16T12:12:27.722Z","updated_at":"2025-04-15T12:13:06.572Z","avatar_url":"https://github.com/twtrubiks.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploying-Flask-To-OpenShift \nDeploying a Flask App To OpenShift Tutorial 📝 \n\n* [Youtube Demo](https://youtu.be/PlomZkYcdYU)   \n\n今天教大家如何佈署 Flask App 到 [OpenShift](https://www.openshift.com/) \n\n[OpenShift](https://www.openshift.com/) 免費版本\n\n* 可以創造 3個 app。\n\n\n更多說明請參考 [OpenShift](https://www.openshift.com/) \n\n\n## 教學\n\n### 步驟一\n\n先註冊 OpenShift 帳號，請到 [OpenShift](https://www.openshift.com/)  註冊\n\n### 步驟二\n\n\u003cb\u003e新增 SSH keys\u003c/b\u003e\n\n可參考 github 的 [generating-a-new-ssh-key](https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/) 說明\n\n或是\n\n參考小弟之前拍的影片 [github基本教學 - 從無到有](https://www.youtube.com/watch?v=py3n6gF5Y00)\n\n影片教學包含如何產生 \u003cb\u003eSSH key\u003c/b\u003e\n\n如下圖將自己的 \u003cb\u003eid_rsa.pub\u003c/b\u003e 設定完畢即可\n\n![alt tag](http://i.imgur.com/cM87Psl.jpg)\n\n### 步驟三\n\n開始建立 flask web app\n\n![alt tag](http://i.imgur.com/GqBTCoA.jpg)\n\n[OpenShift](https://www.openshift.com/) 支援非常多的程式語言，\n\n找到 python ，然後點選 \u003cb\u003esee all\u003c/b\u003e 就可以找到 Flask 了\n\n![alt tag](http://i.imgur.com/cIHT8Cv.jpg)\n\n![alt tag](http://i.imgur.com/wy5Ei5r.jpg)\n\n接著輸入網址的名稱，如果輸入的不合法，他會提醒你\n\n![alt tag](http://i.imgur.com/MVBsRUZ.jpg)\n\n接著按 \u003cb\u003e Create Application \u003c/b\u003e，然後就是等~~~~~\n\n![alt tag](http://i.imgur.com/6CBMxAU.jpg)\n\n等他跑完，就會跳到下面這個畫面\n\n![alt tag](http://i.imgur.com/Kd7k1jJ.jpg)\n\n基本上就是 git 的操作，如不清楚什麼是 [Git](https://git-scm.com/)\n\n可以參考我之前寫的 [Git-Tutorials](https://github.com/twtrubiks/Git-Tutorials)\n\n![alt tag](http://i.imgur.com/yrqEEAq.jpg)\n\nclone 下來預設的資料夾底下會有這些東西\n\n![alt tag](http://i.imgur.com/vEowCmI.jpg)\n\n可以直接點紅色框起來的地方\n\n![alt tag](http://i.imgur.com/8B6RKYb.jpg)\n\n以下範例是我的\n\n[http://deployingflasktutorials-twtrubikscode.rhcloud.com/](http://deployingflasktutorials-twtrubikscode.rhcloud.com/)\n\n會直接跳到你的網站，預設 Flask app 版面如下\n\n![alt tag](http://i.imgur.com/uoBDv0o.jpg)\n\n如果你需要重新佈署，基本上就是 git 的操作\n\n![alt tag](http://i.imgur.com/N8mOKAe.jpg)\n\n我修改掉標題的部分\n\n![alt tag](http://i.imgur.com/mCeSUxy.jpg)\n\n\n以上就是 Deploying-Flask-To-OpenShift  的方法，更多資訊可以參考 \n\n[Getting Started with the Flask Microframework](https://developers.openshift.com/languages/python/flask.html)\n\n\n## Reference \n* [OpenShift](https://www.openshift.com/) \n\n\n## License\nMIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwtrubiks%2Fdeploying-flask-to-openshift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwtrubiks%2Fdeploying-flask-to-openshift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwtrubiks%2Fdeploying-flask-to-openshift/lists"}