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

Question: Where is app.yaml located? #373

Open
pvizan-artefact opened this issue May 8, 2024 · 2 comments
Open

Question: Where is app.yaml located? #373

pvizan-artefact opened this issue May 8, 2024 · 2 comments
Labels
question Further information is requested

Comments

@pvizan-artefact
Copy link

I wish to deploy library to Google App Engine. There is an app.yaml file required and the documentation states that "You can also deploy Library to GAE, using the included app.yaml." However, I cannot find the stated app.yaml file anywhere in the repository. Where can I find it?

@pvizan-artefact pvizan-artefact added the question Further information is requested label May 8, 2024
@afischer
Copy link
Member

afischer commented May 8, 2024

Hi @pvizan-artefact! Thanks for your question.

This seems like a typo on our end — we include an app.json here. I believe that GAE also supports .json app config files, but if not, you should be able to use a json to yaml converter like this one to transform this json file into yaml.

Sorry about the confusion, we will update our documentation!

@pvizan-artefact
Copy link
Author

pvizan-artefact commented May 8, 2024

Thank you! On my side, I had an error when trying to deploy the app on Google App Engine whenever there was not a yaml file in the directory. I have tried to convert the json file to yaml as suggested, save it in the repository directory as app.yaml, and then ran the command: gcloud app deploy --project={my_project}

However, I get this error:

An error occurred while parsing file: [/Users/.../Code/library/app.yaml]
Unexpected attribute 'name' for object of type AppInfoExternal.

I did manage to find a file navigating through past commits called app.yaml. I manage to deploy the app and see this message at the end:

Setting traffic split for service [default]...done.                                                                                                 
Deployed service [default] to [https://**your_project_id**.appspot.com]
You can stream logs from the command line by running:
  $ gcloud app logs tail -s default
To view your application in the web browser run:
  $ gcloud app browse --project=**your_project_id**

Still, if I then open the appspot link, I get a "Service Unavailable" message on the website. (probably this file is deprecated and that is the reason, but just wanted to point out that file does get me a bit further)

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

No branches or pull requests

2 participants