Re: [google-appengine] Re: React JS routers doesn't work

2018-07-31 Thread Birhanu Hailemariam
Yes Yasser, part of it is exactly like that and I also added the following
line between those *urls*.

`
- url: /
  static_files: dist/index.html
  upload: dist/index.html`
`

On Mon, Jul 30, 2018 at 11:48 PM 'Yasser Karout (Cloud Platform Support)'
via Google App Engine  wrote:

> Birhanu's app.yaml looks like this according to the changes he mentioned:
>
> # [START runtime]
> runtime: nodejs8
> api_version: 1
> instance_class: F2
>
>
> handlers:
>
>
> - url: /(.*)
>   static_files: dist/index.html
>   upload: dist/index.html
>   secure: always
>
>
> - url: /
>   static_dir: dist
> # [END runtime]
>
>
>
>
> On Monday, July 30, 2018 at 9:01:47 AM UTC-4, Nikos Katsikanis wrote:
>>
>> pls share your ap.yaml, I have the same issue with a vue app
>>
>> On Friday, July 27, 2018 at 2:26:23 PM UTC+1, Birhanu Hailemariam wrote:
>>>
>>> That looks like it. Changed the first handler to this */(.*) *and the
>>> send only to* / *and now got it work. Thanks, Jean!
>>>
>>> On Fri, Jul 27, 2018 at 12:26 AM 'Jean Juste-constant' via Google App
>>> Engine  wrote:
>>>
 It seems your first handlers is setting '/' with 'dist/index.html'. I
 would change the second handler to be more precise or simply add the
 wildcard: '/*'. This way any url other than the root '/' should refer to
 the static dir you've set.


 On Wednesday, July 25, 2018 at 5:23:34 PM UTC-4, Birhanu Hailemariam
 wrote:
>
> I checked the GCP documentation throughly prior to publishing my
> question and there isn't any clear instruction for mapping ReactJS routes
> correctly in *app.ymal *config handlers. And, I was wondering if I
> cloud be missing something in my config or is it even possible achieving
> this with App Engine at all!... Anyway, will continue looking for the
> answer in other platform. Than you for the tips!
>
> On Wed, Jul 25, 2018 at 11:28 PM 'Katayoon (Cloud Platform Support)'
> via Google App Engine  wrote:
>
>> You may check your handler elements descriptions through this link
>> .
>>
>>
>> Note that Google Groups are reserved for general Google Cloud
>> Platform-end product discussions and not for technical questions. For
>> further technical support, I recommend that you post your full
>> detailed question  to Stack
>> Overflow ,
>> using the supported Cloud tags.
>>
>> --
>> 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-appengi...@googlegroups.com.
>> To post to this group, send email to google-a...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-appengine/c95cee97-96a4-45e3-b619-63de54f3622e%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
 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-appengi...@googlegroups.com.
 To post to this group, send email to google-a...@googlegroups.com.
 Visit this group at https://groups.google.com/group/google-appengine.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-appengine/aff8b2b7-08c4-4d45-a6cc-252e827d5f68%40googlegroups.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> --
> 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 post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/b778e78d-d617-4a3a-8707-2bc60aeebf4e%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 

Re: [google-appengine] Re: React JS routers doesn't work

2018-07-30 Thread 'Yasser Karout (Cloud Platform Support)' via Google App Engine
Birhanu's app.yaml looks like this according to the changes he mentioned:

# [START runtime]
runtime: nodejs8
api_version: 1
instance_class: F2


handlers:


- url: /(.*)
  static_files: dist/index.html
  upload: dist/index.html
  secure: always


- url: /
  static_dir: dist
# [END runtime]




On Monday, July 30, 2018 at 9:01:47 AM UTC-4, Nikos Katsikanis wrote:
>
> pls share your ap.yaml, I have the same issue with a vue app
>
> On Friday, July 27, 2018 at 2:26:23 PM UTC+1, Birhanu Hailemariam wrote:
>>
>> That looks like it. Changed the first handler to this */(.*) *and the 
>> send only to* / *and now got it work. Thanks, Jean!
>>
>> On Fri, Jul 27, 2018 at 12:26 AM 'Jean Juste-constant' via Google App 
>> Engine  wrote:
>>
>>> It seems your first handlers is setting '/' with 'dist/index.html'. I 
>>> would change the second handler to be more precise or simply add the 
>>> wildcard: '/*'. This way any url other than the root '/' should refer to 
>>> the static dir you've set. 
>>>
>>>
>>> On Wednesday, July 25, 2018 at 5:23:34 PM UTC-4, Birhanu Hailemariam 
>>> wrote:

 I checked the GCP documentation throughly prior to publishing my 
 question and there isn't any clear instruction for mapping ReactJS routes 
 correctly in *app.ymal *config handlers. And, I was wondering if I 
 cloud be missing something in my config or is it even possible achieving 
 this with App Engine at all!... Anyway, will continue looking for the 
 answer in other platform. Than you for the tips!

 On Wed, Jul 25, 2018 at 11:28 PM 'Katayoon (Cloud Platform Support)' 
 via Google App Engine  wrote:

> You may check your handler elements descriptions through this link 
> .
>  
>
>
> Note that Google Groups are reserved for general Google Cloud 
> Platform-end product discussions and not for technical questions. For 
> further technical support, I recommend that you post your full 
> detailed question  to Stack 
> Overflow , using 
> the supported Cloud tags.
>
> -- 
> 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-appengi...@googlegroups.com.
> To post to this group, send email to google-a...@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-appengine/c95cee97-96a4-45e3-b619-63de54f3622e%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
 -- 
>>> 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-appengi...@googlegroups.com.
>>> To post to this group, send email to google-a...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/google-appengine.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/google-appengine/aff8b2b7-08c4-4d45-a6cc-252e827d5f68%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b778e78d-d617-4a3a-8707-2bc60aeebf4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: React JS routers doesn't work

2018-07-30 Thread Nikos Katsikanis
pls share your ap.yaml, I have the same issue with a vue app

On Friday, July 27, 2018 at 2:26:23 PM UTC+1, Birhanu Hailemariam wrote:
>
> That looks like it. Changed the first handler to this */(.*) *and the 
> send only to* / *and now got it work. Thanks, Jean!
>
> On Fri, Jul 27, 2018 at 12:26 AM 'Jean Juste-constant' via Google App 
> Engine > wrote:
>
>> It seems your first handlers is setting '/' with 'dist/index.html'. I 
>> would change the second handler to be more precise or simply add the 
>> wildcard: '/*'. This way any url other than the root '/' should refer to 
>> the static dir you've set. 
>>
>>
>> On Wednesday, July 25, 2018 at 5:23:34 PM UTC-4, Birhanu Hailemariam 
>> wrote:
>>>
>>> I checked the GCP documentation throughly prior to publishing my 
>>> question and there isn't any clear instruction for mapping ReactJS routes 
>>> correctly in *app.ymal *config handlers. And, I was wondering if I 
>>> cloud be missing something in my config or is it even possible achieving 
>>> this with App Engine at all!... Anyway, will continue looking for the 
>>> answer in other platform. Than you for the tips!
>>>
>>> On Wed, Jul 25, 2018 at 11:28 PM 'Katayoon (Cloud Platform Support)' via 
>>> Google App Engine > wrote:
>>>
 You may check your handler elements descriptions through this link 
 .
  


 Note that Google Groups are reserved for general Google Cloud 
 Platform-end product discussions and not for technical questions. For 
 further technical support, I recommend that you post your full 
 detailed question  to Stack 
 Overflow , using 
 the supported Cloud tags.

 -- 
 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-appengi...@googlegroups.com .
 To post to this group, send email to google-a...@googlegroups.com 
 .
 Visit this group at https://groups.google.com/group/google-appengine.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/google-appengine/c95cee97-96a4-45e3-b619-63de54f3622e%40googlegroups.com
  
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>> 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-appengi...@googlegroups.com .
>> To post to this group, send email to google-a...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/aff8b2b7-08c4-4d45-a6cc-252e827d5f68%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/45a273bc-061d-4d50-aa40-20c2b130666f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: React JS routers doesn't work

2018-07-27 Thread Birhanu Hailemariam
That looks like it. Changed the first handler to this */(.*) *and the send
only to* / *and now got it work. Thanks, Jean!

On Fri, Jul 27, 2018 at 12:26 AM 'Jean Juste-constant' via Google App
Engine  wrote:

> It seems your first handlers is setting '/' with 'dist/index.html'. I
> would change the second handler to be more precise or simply add the
> wildcard: '/*'. This way any url other than the root '/' should refer to
> the static dir you've set.
>
>
> On Wednesday, July 25, 2018 at 5:23:34 PM UTC-4, Birhanu Hailemariam wrote:
>>
>> I checked the GCP documentation throughly prior to publishing my question
>> and there isn't any clear instruction for mapping ReactJS routes correctly
>> in *app.ymal *config handlers. And, I was wondering if I cloud be
>> missing something in my config or is it even possible achieving this with
>> App Engine at all!... Anyway, will continue looking for the answer in other
>> platform. Than you for the tips!
>>
>> On Wed, Jul 25, 2018 at 11:28 PM 'Katayoon (Cloud Platform Support)' via
>> Google App Engine  wrote:
>>
>>> You may check your handler elements descriptions through this link
>>> .
>>>
>>>
>>> Note that Google Groups are reserved for general Google Cloud
>>> Platform-end product discussions and not for technical questions. For
>>> further technical support, I recommend that you post your full detailed
>>> question  to Stack Overflow
>>> , using the
>>> supported Cloud tags.
>>>
>>> --
>>> 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 post to this group, send email to google-appengine@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/google-appengine.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-appengine/c95cee97-96a4-45e3-b619-63de54f3622e%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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 post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/aff8b2b7-08c4-4d45-a6cc-252e827d5f68%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAB3abjaWq3VUKhW%3DzyB%2BXdGPYhbOZ74SLvQrSdG_UK7OARAmLw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: React JS routers doesn't work

2018-07-26 Thread 'Jean Juste-constant' via Google App Engine
It seems your first handlers is setting '/' with 'dist/index.html'. I would 
change the second handler to be more precise or simply add the wildcard: 
'/*'. This way any url other than the root '/' should refer to the static 
dir you've set. 


On Wednesday, July 25, 2018 at 5:23:34 PM UTC-4, Birhanu Hailemariam wrote:
>
> I checked the GCP documentation throughly prior to publishing my question 
> and there isn't any clear instruction for mapping ReactJS routes correctly 
> in *app.ymal *config handlers. And, I was wondering if I cloud be missing 
> something in my config or is it even possible achieving this with App 
> Engine at all!... Anyway, will continue looking for the answer in other 
> platform. Than you for the tips!
>
> On Wed, Jul 25, 2018 at 11:28 PM 'Katayoon (Cloud Platform Support)' via 
> Google App Engine  wrote:
>
>> You may check your handler elements descriptions through this link 
>> .
>>  
>>
>>
>> Note that Google Groups are reserved for general Google Cloud 
>> Platform-end product discussions and not for technical questions. For 
>> further technical support, I recommend that you post your full detailed 
>> question  to Stack Overflow 
>> , using the 
>> supported Cloud tags.
>>
>> -- 
>> 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 post to this group, send email to google-appengine@googlegroups.com.
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/c95cee97-96a4-45e3-b619-63de54f3622e%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/aff8b2b7-08c4-4d45-a6cc-252e827d5f68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: React JS routers doesn't work

2018-07-25 Thread Birhanu Hailemariam
I checked the GCP documentation throughly prior to publishing my question
and there isn't any clear instruction for mapping ReactJS routes correctly
in *app.ymal *config handlers. And, I was wondering if I cloud be missing
something in my config or is it even possible achieving this with App
Engine at all!... Anyway, will continue looking for the answer in other
platform. Than you for the tips!

On Wed, Jul 25, 2018 at 11:28 PM 'Katayoon (Cloud Platform Support)' via
Google App Engine  wrote:

> You may check your handler elements descriptions through this link
> .
>
>
> Note that Google Groups are reserved for general Google Cloud Platform-end
> product discussions and not for technical questions. For further
> technical support, I recommend that you post your full detailed question
>  to Stack Overflow
> , using the
> supported Cloud tags.
>
> --
> 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 post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/c95cee97-96a4-45e3-b619-63de54f3622e%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAB3abjb%2BW1tt6JzSjBzEhsPbByR13ifXNUatB_R2fHJu9iCqTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: React JS routers doesn't work

2018-07-25 Thread 'Katayoon (Cloud Platform Support)' via Google App Engine


You may check your handler elements descriptions through this link 
.
 


Note that Google Groups are reserved for general Google Cloud Platform-end 
product discussions and not for technical questions. For further technical 
support, I recommend that you post your full detailed question 
 to Stack Overflow 
, using the supported 
Cloud tags.

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c95cee97-96a4-45e3-b619-63de54f3622e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.