Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy from local git repo #7

Closed
hcarter333 opened this issue Jan 22, 2023 · 2 comments
Closed

deploy from local git repo #7

hcarter333 opened this issue Jan 22, 2023 · 2 comments

Comments

@hcarter333
Copy link
Owner

Change deploy process to use the local git repo.

@hcarter333
Copy link
Owner Author

hcarter333 commented Jan 22, 2023

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 added a commit that referenced this issue Jan 22, 2023
@hcarter333
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant