
git 연결 방법, .gitignore 목록, DS_Store
2021. 10. 11. 18:22
git & 배포/Deploy(AWS 등)
레포지토리 만든 후 (readMe 없이) git init git remote add origin [URL] touch README.md touch .gitignore git add . git commit -m'start with project' git push origin master .gitignore 목록 찾는 방법 ex) "gitignore python" 구글링 https://github.com/github/gitignore/blob/master/Python.gitignore GitHub - github/gitignore: A collection of useful .gitignore templates A collection of useful .gitignore templates. Contribute..
github page 404 에러
2021. 9. 26. 21:22
git & 배포/Deploy(AWS 등)
$ git commit --allow-empty -m 'Trigger rebuild' $ git push origin 출처 https://stackoverflow.com/questions/11577147/how-to-fix-http-404-on-github-pages/45907768#45907768

에러) at=error code=h10 desc="app crashed" in flask
2021. 9. 22. 15:01
git & 배포/Deploy(AWS 등)
에러화면 해결방법 web: gunicorn main:app --bind 0.0.0.0:${PORT} if __name__ == "__main__": port = int(os.environ.get("PORT", 5000)) app.run(host="0.0.0.0", port=port)

heroku
2021. 9. 22. 11:29
git & 배포/Deploy(AWS 등)
heroku 배포 CLI 개발때 서버실행하는 것은 주석처리 #! 개발때만 필요 # if __name__ == '__main__': # app.run_server(debug=True) 추가 부분 pip freeze > requirements.txt 필요한거 빼고 다 지우기 정리 후 Procfile 어플리케이션 타입을 알려주는 것 Procfile 생성 touch Procfile 이것은 웹사이트 용이다 gunicorn 파이썬을 위한 서버 pip install gunicorn git add . git commit -m'Profile' git push origin main (생략가능) git push heroku main (반드시) 수정하기 바꾼 후 위에 과정을 다시 반복