티스토리 뷰

http://devst.tistory.com/entry/Ubuntu%EC%97%90%EC%84%9C-NGINX%EC%99%80-Python-with-Flask-%EB%A5%BC-%EC%82%AC%EC%9A%A9%ED%95%A0-%EC%A4%80%EB%B9%84%ED%95%98%EA%B8%B0

의 방법을 통해 만들어진 서버 환경에서 사용할수 있는 방법입니다


1. flaskdev 로 로그인

su flaskdev


2. 업데이트 실행

cd ~;virtualenv flask_env/;source flask_env/bin/activate;cd ~;echo 'aW1wb3J0IHBpcA0KZnJvbSBzdWJwcm9jZXNzIGltcG9ydCBjYWxsDQpmb3IgZGlzdCBpbiBwaXAuZ2V0X2luc3RhbGxlZF9kaXN0cmlidXRpb25zKCk6DQoJY2FsbCgicGlwIGluc3RhbGwgLS11cGdyYWRlICIgKyBkaXN0LnByb2plY3RfbmFtZSwgc2hlbGw9VHJ1ZSkNCmV4aXQoKQ0K' | base64 --decode > asodifjiovjioasdjvioheoihrio2h3iorhio2hiosdhasoivhioshdaoihfoihwioefho23.py;python asodifjiovjioasdjvioheoihrio2h3iorhio2hiosdhasoivhioshdaoihfoihwioefho23.py;rm asodifjiovjioasdjvioheoihrio2h3iorhio2hiosdhasoivhioshdaoihfoihwioefho23.py;


cd ~;virtualenv flask_env/;source flask_env/bin/activate;cd ~;python -c "`echo 'I2ltcG9ydCBwaXANCiNmcm9tIHN1YnByb2Nlc3MgaW1wb3J0IGNhbGwNCmltcG9ydCBvcw0KZGVmIHNoZWxsX2V4ZWMoY21kKTogDQogICBwbyA9IG9zLnBvcGVuKGNtZCkNCiAgIG91dHB1dCA9IHBvLnJlYWQoKQ0KICAgcG8uY2xvc2UoKQ0KICAgcmV0dXJuIG91dHB1dA0KDQpsaXN0XyA9IHNoZWxsX2V4ZWMoJ3BpcCBsaXN0IC0tb3V0ZGF0ZWQnKS5zcGxpdCgnXG4nKQ0KY291bnQgPSAwDQpmb3IgbGluZSBpbiBsaXN0XzoNCiAgY291bnQgKz0gMQ0KICBpZiBjb3VudCA+IDI6DQogICAgaXRlbSA9IGxpbmUuc3BsaXQoJyAnKVswXQ0KICAgIHNoZWxsX2V4ZWMoInBpcCBpbnN0YWxsIC0tdXBncmFkZSAiK2l0ZW0pDQoNCnByaW50ICJkb25lIg0KI2ZvciBkaXN0IGluIHBpcC5nZXRfaW5zdGFsbGVkX2Rpc3RyaWJ1dGlvbnMoKToNCiMJY2FsbCgicGlwIGluc3RhbGwgLS11cGdyYWRlICIgKyBkaXN0LnByb2plY3RfbmFtZSwgc2hlbGw9VHJ1ZSkNCiNleGl0KCkNCg==' | base64 --decode`"



댓글
댓글쓰기 폼
공지사항
Total
31,313
Today
12
Yesterday
23
링크
«   2018/10   »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
글 보관함