2/13/2014

Flask를 heroku에 정말 간단히 deploy하기

1. flask 기준으로 된  Heroku deploy Getting Started

2. git add 취소 -> git reset

$ git reset



3. git bash에 foreman이 없다네? 설치하면 됩니다

$ gem uninstall foreman
$ gem install foreman -v 0.61



4. Procfile ?? heroku가 실행하기 위한 script 같은 거


web: python app.py //이 링크에서 나오는 예제인 .py는 안되더라
// heroku로 push 하고 나니 바로 될리가 없지! 
web: gunicorn hello:app // filename:app이 맞는거 같다




5. foreman start가 안되네??



Procfile에 있는 gunicorn 이 window에서 안된단다. 그러니 윈도우에서는 foreman start 는 패스. 

Deploy 될 Heroku에선 잘 됨.





You have to upload your public key to Heroku:
heroku keys:add ~/.ssh/id_rsa.pub
If you don't have a public key, Heroku will prompt you to add one automatically which works seamlessly. Just use:
heroku keys:add


댓글 없음:

댓글 쓰기