목차
[컴][웹] 구글 앱 엔진 web app 대신에 Django 이용하기 1
[컴][웹] 구글 앱 엔진 web app 대신에 Django 이용하기 2 - static files
[컴][웹] 구글 앱 엔진 web app 대신에 Django 이용하기 3 - Deploy
[컴][웹] 구글 앱 엔진 web app 대신에 Django 이용하기 4 - Memcache
[컴][웹] 구글 앱 엔진 web app 대신에 Django 이용하기 5 - SECRET_KEY
[컴][웹] 구글 앱 엔진 web app 대신에 Django 이용하기 6 - rss feed 만들기
[컴][웹] 구글 앱 엔진 web app 대신에 Django 이용하기 7 - Django Data Model
[컴][웹] 구글 앱 엔진 web app 대신에 Django 이용하기 1
[컴][웹] 구글 앱 엔진 web app 대신에 Django 이용하기 2 - static files
[컴][웹] 구글 앱 엔진 web app 대신에 Django 이용하기 3 - Deploy
[컴][웹] 구글 앱 엔진 web app 대신에 Django 이용하기 4 - Memcache
[컴][웹] 구글 앱 엔진 web app 대신에 Django 이용하기 5 - SECRET_KEY
[컴][웹] 구글 앱 엔진 web app 대신에 Django 이용하기 6 - rss feed 만들기
[컴][웹] 구글 앱 엔진 web app 대신에 Django 이용하기 7 - Django Data Model
Deploy and run your project
이제 google app engine 에 올리자.(deploy) 방법은 간단한다.
manage.py deploy를 해주면 된다.
application id
이때 주의할 점은 app.yaml 에 있는 application: app_id 를 잘 적어야 한다. app_id 값이 아닌 다른 값을 넣으면 해당하는 app_id 가 존재하지 않는다며 deploy 가 퇴짜맞을 것이다.참고로 application id 는 "정수"만 가능한 듯 하다. 소수점을 가진 1.2.0 을 시도 해봤는데, error 가 발생했다.
d:\mine\programming\eclipse\goolgeapp\guestbook\src>manage.py deployWARNING:root:The rdbms API is not available because the MySQLdb library could no
t be loaded.
05:31 PM Host: appengine.google.com
05:31 PM Application: populmap; version: 1
05:31 PM
Starting update of app: populmap, version: 1
05:31 PM Getting current resource limits.
05:31 PM Scanning files on local disk.
Could not guess mimetype for guestbook/iui/ext-sandbox/unloader/ajax.frag. Usin
g application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/t/android/droidsans.ttf.
Using application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/jit-loader/gmaps.frag. U
sing application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/jit-loader/jstest.frag.
Using application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/cache-manager/cache-demo.
manifest. Using application/octet-stream.
05:31 PM Scanned 500 files.
05:31 PM Scanned 1000 files.
05:31 PM Scanned 1500 files.
05:31 PM Scanned 2000 files.
05:31 PM Scanned 2500 files.
05:31 PM Scanned 3000 files.
Could not guess mimetype for guestbook/iui/ext-sandbox/jit-loader/jstest.frag.
Using application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/unloader/ajax.frag. Usin
g application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/t/android/droidsans.ttf.
Using application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/jit-loader/gmaps.frag. U
sing application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/cache-manager/cache-demo.
manifest. Using application/octet-stream.
05:31 PM Cloning 214 static files.
05:31 PM Cloned 200 files.
05:31 PM Cloning 3250 application files.
05:31 PM Cloned 200 files.
05:31 PM Cloned 400 files.
05:31 PM Cloned 600 files.
05:31 PM Cloned 800 files.
05:31 PM Cloned 1000 files.
05:31 PM Cloned 1200 files.
05:31 PM Cloned 1400 files.
05:31 PM Cloned 1600 files.
05:31 PM Cloned 1800 files.
05:32 PM Cloned 2000 files.
05:32 PM Cloned 2200 files.
05:32 PM Cloned 2400 files.
05:32 PM Cloned 2600 files.
05:32 PM Cloned 2800 files.
05:32 PM Cloned 3000 files.
05:32 PM Cloned 3200 files.
05:32 PM Uploading 5 files and blobs.
05:32 PM Uploaded 5 files and blobs
05:32 PM Compilation starting.
05:32 PM Compilation completed.
05:32 PM Starting deployment.
05:32 PM Checking if deployment succeeded.
05:32 PM Will check again in 1 seconds.
05:32 PM Checking if deployment succeeded.
05:32 PM Will check again in 2 seconds.
05:32 PM Checking if deployment succeeded.
05:32 PM Deployment successful.
05:32 PM Checking if updated app version is serving.
05:32 PM Will check again in 1 seconds.
05:33 PM Checking if updated app version is serving.
05:33 PM Completed update of app: populmap, version: 1
05:33 PM Uploading index definitions.
05:33 PM Uploading cron entries.
Running syncdb.
WARNING:root:Could not read search indexes from e:\temp\dev_appserver.searchinde
xes
Creating tables ...You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (Leave blank to use 'hanhan'):
E-mail address: gaeuck@gmail.com
Password:
Password (again):
Superuser created successfully.
Installing custom SQL ...
Installing indexes ...
No fixtures found.
d:\mine\programming\eclipse\goolgeapp\guestbook\src>
t be loaded.
05:31 PM Host: appengine.google.com
05:31 PM Application: populmap; version: 1
05:31 PM
Starting update of app: populmap, version: 1
05:31 PM Getting current resource limits.
05:31 PM Scanning files on local disk.
Could not guess mimetype for guestbook/iui/ext-sandbox/unloader/ajax.frag. Usin
g application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/t/android/droidsans.ttf.
Using application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/jit-loader/gmaps.frag. U
sing application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/jit-loader/jstest.frag.
Using application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/cache-manager/cache-demo.
manifest. Using application/octet-stream.
05:31 PM Scanned 500 files.
05:31 PM Scanned 1000 files.
05:31 PM Scanned 1500 files.
05:31 PM Scanned 2000 files.
05:31 PM Scanned 2500 files.
05:31 PM Scanned 3000 files.
Could not guess mimetype for guestbook/iui/ext-sandbox/jit-loader/jstest.frag.
Using application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/unloader/ajax.frag. Usin
g application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/t/android/droidsans.ttf.
Using application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/jit-loader/gmaps.frag. U
sing application/octet-stream.
Could not guess mimetype for guestbook/iui/ext-sandbox/cache-manager/cache-demo.
manifest. Using application/octet-stream.
05:31 PM Cloning 214 static files.
05:31 PM Cloned 200 files.
05:31 PM Cloning 3250 application files.
05:31 PM Cloned 200 files.
05:31 PM Cloned 400 files.
05:31 PM Cloned 600 files.
05:31 PM Cloned 800 files.
05:31 PM Cloned 1000 files.
05:31 PM Cloned 1200 files.
05:31 PM Cloned 1400 files.
05:31 PM Cloned 1600 files.
05:31 PM Cloned 1800 files.
05:32 PM Cloned 2000 files.
05:32 PM Cloned 2200 files.
05:32 PM Cloned 2400 files.
05:32 PM Cloned 2600 files.
05:32 PM Cloned 2800 files.
05:32 PM Cloned 3000 files.
05:32 PM Cloned 3200 files.
05:32 PM Uploading 5 files and blobs.
05:32 PM Uploaded 5 files and blobs
05:32 PM Compilation starting.
05:32 PM Compilation completed.
05:32 PM Starting deployment.
05:32 PM Checking if deployment succeeded.
05:32 PM Will check again in 1 seconds.
05:32 PM Checking if deployment succeeded.
05:32 PM Will check again in 2 seconds.
05:32 PM Checking if deployment succeeded.
05:32 PM Deployment successful.
05:32 PM Checking if updated app version is serving.
05:32 PM Will check again in 1 seconds.
05:33 PM Checking if updated app version is serving.
05:33 PM Completed update of app: populmap, version: 1
05:33 PM Uploading index definitions.
05:33 PM Uploading cron entries.
Running syncdb.
WARNING:root:Could not read search indexes from e:\temp\dev_appserver.searchinde
xes
Creating tables ...You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (Leave blank to use 'hanhan'):
E-mail address: gaeuck@gmail.com
Password:
Password (again):
Superuser created successfully.
Installing custom SQL ...
Installing indexes ...
No fixtures found.
d:\mine\programming\eclipse\goolgeapp\guestbook\src>
이제 URL 에 가 보자. 아까와 같은 결과를 얻을 수 있다. 테스트 결과 한글도 별 문제없이 잘 작동하는 듯 하다.
Running Server 선택
version 을 올려서 GAE 에 deploy (배포) 를 하면, 아래처럼 console 에서 확인할 수 있다. 여기서 version 선택을 해주는 것으로 원하는 server를 run 할 수 있다.계정의 보안 설정
간만에 수정사항이 있어 deploy 를 하려는데 계속 내 email 계정과 password 를 이용해서 login 을 수행하는데Invalid username or password.만 찍혔다. 혹시 password 가 다를가 해서 여러번 시도했지만 계속 같았다.
찾아보니 구글계정에 변화가 생겼다. 아래 처럼 보안에 대한 정책이 생겼다. 그래서 console 에서 접근하는 login 에 대해서 deny 시킨 듯 했다.
여튼 위처럼 보안 정책을 바꿔주고는 deploy 를 할 수 있었다.
댓글 없음:
댓글 쓰기