1
내 앱을 배포하려고하면 이 표시됩니다.404 App Engine에서 크론 작업 사용
main.py :
import webapp2
class MainHandler(webapp2.RequestHandler):
def get(self):
self.response.write("<h1>Duracron!</h1>")
class EventHandler(webapp2.RequestHandler):
def get(self):
self.response.write("<h1>Duracsron!</h1>")
app = webapp2.WSGIApplication([
('/', MainHandler),
('/event/.*', EventHandler),
], debug=True)
애플리케이션 제목 :
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
- url: /.*
script: main.app
libraries:
- name: webapp2
version: "2.5.2"
- name: ssl
version: latest
cron.yaml :
cron:
- description: test task
url: /events/test
schedule: every 1 minutes
내가 할 수있는 '여기 내 응용 프로그램을 구성하는 파일은 무슨 일이 일어나고 있는지 알아내는 것 같습니다. 내 이해에서 cron.yaml
은 에 요청하고 app.yaml
은 main.app
으로 리디렉션하고 main.app
은 EventsHandler()
으로 라우팅합니다. 내가 뭘 놓치고 있니?