I'm kind of confused because I downloaded web2py on the mac and I have a web2py.app file that has the folder 'Contents' inside it which then has inside it: Frameworks, MacOS, Resources.
I've been treating Resources as my top-level folder for web2py because it seems to be what works, but it doesn't have the gaehandler.py in it? What do I do? On Aug 26, 10:12 pm, Massimo Di Pierro <massimo.dipie...@gmail.com> wrote: > Look at the source of the code you are deploying. There should be a > file: > > web2py/gaehandler.py > > for some reason this file did not get deployed on GAE. Perhaps you > accidentally deleted it? > > massimo > > On Aug 25, 11:07 pm, Jarrod Cugley <jcug...@gmail.com> wrote: > > > > > > > > > Oh I didn't know GAE had logs too whoops. > > > It gives me the warning: > > > File referenced by handler not found: gaehandler.py > > > Any idea what that means? > > > On Aug 26, 1:58 pm, Massimo Di Pierro <massimo.dipie...@gmail.com> > > wrote: > > > > Check the GAE logs on the dashboard. > > > > On Aug 25, 10:32 pm, Jarrod Cugley <jcug...@gmail.com> wrote: > > > > > So I've created a basic website that works on the web2py server, so I > > > > wanted to test it on the GAE, these are my steps so far: > > > > > 1. read:http://web2py.com/book/default/chapter/11#Google-App-Engine > > > > 2. copied the app.example.yaml into my app.yaml and changed the id to > > > > the same id I used to create my app on GAE > > > > 3. Added the existing folder directory to GAE launcher > > > > 4. Run it, and it spits this out in the log: > > > > > *** Running dev_appserver with the following flags: > > > > --admin_console_server= --port=8080 > > > > Python command: /usr/bin/python2.6 > > > > Warning: You are using a Python runtime (2.6) that is more recent than > > > > the production runtime environment (2.5). Your application may use > > > > features that are not available in the production environment and may > > > > not work correctly when deployed to production. > > > > WARNING 2011-08-26 03:22:33,391 datastore_file_stub.py:512] Could not > > > > read datastore data from /var/folders/t3/ > > > > yh6qg8x93q989_mdzgh9frd80000gn/T/dev_appserver.datastore > > > > INFO 2011-08-26 03:22:33,392 rdbms_sqlite.py:58] Connecting to > > > > SQLite database '' with file '/var/folders/t3/ > > > > yh6qg8x93q989_mdzgh9frd80000gn/T/dev_appserver.rdbms' > > > > WARNING 2011-08-26 03:22:33,396 dev_appserver.py:4748] Could not > > > > initialize images API; you are likely missing the Python "PIL" module. > > > > ImportError: No module named _imaging > > > > INFO 2011-08-26 03:22:33,405 dev_appserver_multiprocess.py:637] > > > > Running application selfemployedlist on port 8080:http://localhost:8080 > > > > > 5. clicked the browse button in GAE launcher and it spits back > > > > this:https://gist.github.com/1172615 > > > > 6. deploy it to GAE and it prints this in the GAE launcher log: > > > > > INFO 2011-08-26 03:24:12,743 dev_appserver_main.py:667] Server > > > > interrupted by user, terminating > > > > > *** Running appfg.py with the following flags: > > > > --no_cookies --email=jcug...@gmail.com --passin update > > > > Application: selfemployedlist; version: 1 > > > > Host: appengine.google.com > > > > > Starting update of app: selfemployedlist, version: 1 > > > > Scanning files on local disk. > > > > Cloning 30 static files. > > > > Cloning 135 application files. > > > > Cloned 100 files. > > > > Uploading 18 files and blobs. > > > > Uploaded 18 files and blobs > > > > Compilation starting. > > > > Compilation completed. > > > > Starting deployment. > > > > Checking if deployment succeeded. > > > > Will check again in 1 seconds. > > > > Checking if deployment succeeded. > > > > Will check again in 2 seconds. > > > > Checking if deployment succeeded. > > > > Will check again in 4 seconds. > > > > Checking if deployment succeeded. > > > > Deployment successful. > > > > Checking if updated app version is serving. > > > > Completed update of app: selfemployedlist, version: 1 > > > > Password for jcug...@gmail.com: If deploy fails you might need to > > > > 'rollback' manually. > > > > The "Make Symlinks..." menu option can help with command-line work. > > > > *** appcfg.py has finished with exit code 0 *** > > > > > 7. Then view the version I just uploaded on GAE and it shows me this > > > > in the browser: > > > > > Error: Server Error > > > > > The server encountered an error and could not complete your request. > > > > If the problem persists, please report your problem and mention this > > > > error message and the query that caused it.