[google-appengine] Re: Google Cloud Build - build.yaml & app.yaml in a sub directory not building correct source

2020-06-03 Thread 'David (Cloud Platform Support)' via Google App Engine


Here is the official documentation of dir 
, not sure if 
you can escape up. However, it’s recommended to have the app.yaml in the 
same directory where the main is. Maybe if you could provide more 
information about what you are trying to accomplish with having this 
specific setup, there could be other different aproaches. For example, If 
you want is to deploy a stage and prod, you could just have one 
cloudbuild.yaml file at root specifying different deployments, and have a 
prod and a stage directory under it having the source files in each of 
their respective directory.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/69979ef6-9c93-4a7e-9bb7-5a1571948f4f%40googlegroups.com.


[google-appengine] Re: Google Cloud Build - build.yaml & app.yaml in a sub directory not building correct source

2020-06-02 Thread 'Alex Fox' via Google App Engine
But what if the build file is within a sub directory, how can you set the 
dir to be its parent?

On Monday, June 1, 2020 at 8:44:27 PM UTC+1, David (Cloud Platform Support) 
wrote:
>
> When you use the dir field in a build step, you are setting the working 
> directory to its value and in this case, assuming your source files are not 
> in that working directory and from what you have mentioned that it’s 
> deploying empty, it’s not finding your source files and you can check this 
> if you go to your deployed application versions, under “diagnose” right 
> click on tools -> source and you will be able to see the files that were 
> deployed.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4080b19e-9f10-4958-9033-bc0f29c3e462%40googlegroups.com.


[google-appengine] Re: Google Cloud Build - build.yaml & app.yaml in a sub directory not building correct source

2020-06-01 Thread 'David (Cloud Platform Support)' via Google App Engine
When you use the dir field in a build step, you are setting the working 
directory to its value and in this case, assuming your source files are not 
in that working directory and from what you have mentioned that it’s 
deploying empty, it’s not finding your source files and you can check this 
if you go to your deployed application versions, under “diagnose” right 
click on tools -> source and you will be able to see the files that were 
deployed.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0abaa82e-d36b-4627-8ce5-c9d146897eb5%40googlegroups.com.


[google-appengine] Re: Google Cloud Build - build.yaml & app.yaml in a sub directory not building correct source

2020-05-29 Thread 'Alex Fox' via Google App Engine
Yes, I saw that SO issue but I couldn't work out what the correct dir: 
value should be.

In both cases the app deploy successfully but in the second case when 
accessing the url I receive a 500 error and the deployed code is only ~600 
bytes which suggests to me it's deployed an empty folder or something like 
that.

This leads me to believe I need to specify the source for the build step, 
but if I am running the cloudbuild from within a subfolder how do I escape 
up the folder tree, e.g. ../../ ?


On Friday, May 29, 2020 at 2:29:28 PM UTC+1, Olu wrote:
>
> Hello, Alex
>
> Can you please provide the specific error obtained while using your second 
> setup that is failing? This will provide more context. Yes, as indicated in 
> this Stackoverflow link[1], it is necessary to specify the DIR in the 
> Cloudbuild.yaml whenever you are trying to trigger your build configuration 
> in a subdirectory. Additionally, with information available to me, I 
> understand you cannot have the app.yaml and the cloudbuild.yaml in the same 
> directory if you are deploying in a non-custom runtime 
>
> [1]
> https://stackoverflow.com/questions/52725046/google-cloud-builder-how-to-trigger-build-configuration-in-a-subdirectory
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4a8f5338-1c96-4c00-8857-6705400a464e%40googlegroups.com.


[google-appengine] Re: Google Cloud Build - build.yaml & app.yaml in a sub directory not building correct source

2020-05-29 Thread 'Olu' via Google App Engine
Hello, Alex

Can you please provide the specific error obtained while using your second 
setup that is failing? This will provide more context. Yes, as indicated in 
this Stackoverflow link[1], it is necessary to specify the DIR in the 
Cloudbuild.yaml whenever you are trying to trigger your build configuration 
in a subdirectory. Additionally, with information available to me, I 
understand you cannot have the app.yaml and the cloudbuild.yaml in the same 
directory if you are deploying in a non-custom runtime 

[1]https://stackoverflow.com/questions/52725046/google-cloud-builder-how-to-trigger-build-configuration-in-a-subdirectory

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ccc9af20-6c52-49d5-bc95-5d199166385d%40googlegroups.com.