hcarter333 / ham-radio-freedom

0 stars 0 forks source link

deploy from local git repo #7

Closed hcarter333 closed 1 year ago

hcarter333 commented 1 year ago

Change deploy process to use the local git repo.

hcarter333 commented 1 year ago

After deployment, came back with error message: ImportError: No module named facebook

at . ( [/base/data/home/apps/m~hamdaise/20230121t120549.449449965854881469/main.py:31](https://console.cloud.google.com/debug?referrer=fromlog&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fm~hamdaise%2F20230121t120549.449449965854881469%2Fmain.py&line=31&project=hamdaise) )

Although that line has not been in the main.py for some time. Removed the line pointing at fancyurl as well as the code that used it. Just in case.

hcarter333 commented 1 year ago

Finally got rid of error message by deleting all isntances of app found at https://console.cloud.google.com/appengine/instances?serviceId=default ...

Then ran into

ImportError: No module named apiclient.discovery

at . ( [/base/data/home/apps/m~hamdaise/20230122t084036.449469853045614909/main.py:22](https://console.cloud.google.com/debug?referrer=fromlog&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fm~hamdaise%2F20230122t084036.449469853045614909%2Fmain.py&line=22&project=hamdaise) )

Deleted the line in main.py

The app now works, but one error message remians:

TemplateDoesNotExist: simple_login.html

at .find_template ( [/base/alloc/tmpfs/dynamic_runtimes/python27g/d8396ee824abfb26/python27/python27_lib/versions/1/google/appengine/_internal/django/template/loader.py:138](https://console.cloud.google.com/debug?referrer=fromlog&file=%2Fbase%2Falloc%2Ftmpfs%2Fdynamic_runtimes%2Fpython27g%2Fd8396ee824abfb26%2Fpython27%2Fpython27_lib%2Fversions%2F1%2Fgoogle%2Fappengine%2F_internal%2Fdjango%2Ftemplate%2Floader.py&line=138&project=hamdaise) )
at .get_template ( [/base/alloc/tmpfs/dynamic_runtimes/python27g/d8396ee824abfb26/python27/python27_lib/versions/1/google/appengine/_internal/django/template/loader.py:157](https://console.cloud.google.com/debug?referrer=fromlog&file=%2Fbase%2Falloc%2Ftmpfs%2Fdynamic_runtimes%2Fpython27g%2Fd8396ee824abfb26%2Fpython27%2Fpython27_lib%2Fversions%2F1%2Fgoogle%2Fappengine%2F_internal%2Fdjango%2Ftemplate%2Floader.py&line=157&project=hamdaise) )
at ._load_internal_django ( [/base/alloc/tmpfs/dynamic_runtimes/python27g/d8396ee824abfb26/python27/python27_lib/versions/1/google/appengine/ext/webapp/template.py:163](https://console.cloud.google.com/debug?referrer=fromlog&file=%2Fbase%2Falloc%2Ftmpfs%2Fdynamic_runtimes%2Fpython27g%2Fd8396ee824abfb26%2Fpython27%2Fpython27_lib%2Fversions%2F1%2Fgoogle%2Fappengine%2Fext%2Fwebapp%2Ftemplate.py&line=163&project=hamdaise) )
at .render ( [/base/alloc/tmpfs/dynamic_runtimes/python27g/d8396ee824abfb26/python27/python27_lib/versions/1/google/appengine/ext/webapp/template.py:89](https://console.cloud.google.com/debug?referrer=fromlog&file=%2Fbase%2Falloc%2Ftmpfs%2Fdynamic_runtimes%2Fpython27g%2Fd8396ee824abfb26%2Fpython27%2Fpython27_lib%2Fversions%2F1%2Fgoogle%2Fappengine%2Fext%2Fwebapp%2Ftemplate.py&line=89&project=hamdaise) )
at .get ( [/base/data/home/apps/m~hamdaise/20230122t084820.449469972767650056/main.py:2086](https://console.cloud.google.com/debug?referrer=fromlog&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fm~hamdaise%2F20230122t084820.449469972767650056%2Fmain.py&line=2086&project=hamdaise) )

and it should since that file was removed from the repository. The code in main.py has been changed from simple_login.html to login.html. Checking the results now. Here's what the browser message looked like:

image

The error is fixed and the app is deploying from the local repository directory!!! image