[google-appengine] Hosting static files on GAE and using own domain.

2012-08-15 Thread Omne
Hi, I'm trying to host my website on GAE, it's just a few  HTML page and 
images. I downloaded the Eclipse and all its required plugins and GAE SDK, 
I think I were able to upload (deploy) a project successfully, now I can 
see an index page on myapp.appspot.com wiich says "Hello App Engine!".

Now I have a few questions:
Do you I have to do anything special for hosting static HTML pages?
I read on the internet that with Python we should configure a file for 
static files, what about Eclipse?
I'm going to remove all unwanted files from project folders and add my 
website files and folders to the project and then deploy it. is this what 
should do?
If I want to point my own domain to my project, should I do it before 
uploading the project or after it? because I noticed GAE has its own domain 
(appspot.com) what if I don't want that my website be available at this 
address too?

Thank you for your help.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/KnVU92RFIeAJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Hosting static files on GAE and using own domain.

2012-08-17 Thread Omne
Thank you all for your replies. I must say that I have no idea about all 
these, I never worked with Java or Python and I never managed any website 
before. I only have some C# and C++ experience which I guess isn't helpful 
here...

On Wednesday, August 15, 2012 8:46:41 AM UTC-7, Joshua Woodward wrote:
>
> There is no getting rid of the appspot domain. If you want your own domain 
> to point to your app engine project, you need to setup Google apps for that 
> domain.
>
> And when you say for eclipse, you mean java right?
>
> Joshua Woodward
>
> http://joshuawoodward.com/ +
> http://twitter.com/howtohtml5
>

@Joshua Woodward: Oh! I thought Eclipse is only Java, I just Google'd and 
learned I can do Python too.
I think there are some tutorials on the internet about hosting an static 
website on GAE using Python. but which one is preferred and which one is 
easier?
I also downloaded the Python plugin for Eclipse, but since I uploaded my 
empty app to GAE without Python can I still do it for a full website with 
pages and images? 
Could you please point me to a good tutorial about hosting a static 
website, I know there are many tutorials on the internet but I'm not sure 
which on is correct...


On Wednesday, August 15, 2012 1:01:11 PM UTC-7, Robert Fischer wrote:

> You could check the url on the request and serve a redirect to the custom 
> domain though if you didn't want appid.appspot.com to be shown.
>
> -Robert
>

On Wednesday, August 15, 2012 12:45:52 PM UTC-7, Jeff Schnitzer wrote:On 
Wed, Aug 15, 2012 at 8:46 AM, Joshua Woodward  
wrote: 

> > There is no getting rid of the appspot domain. 
>
> One minor nit - this is not quite correct. 
>
> If you set up a servlet filter, you can easily block or redirect all 
> traffic to the appspot.com virtual host.  You don't need to serve 
> traffic on *.appspot.com. 
>
> Jeff  
>
 
@ Jeff and Robert: Sorry but I have no idea what you're saying, would you 
please explain more? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/-g8l24j_ADAJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Hosting static files on GAE and using own domain.

2012-08-29 Thread Omne
Thank you all for your replies.

I used Eclipse because I had already downloaded it and I started to figure 
out how to work with it, I didn't want to start again with something new 
like Python...

I simply copied all my website, its files and folders, to "myproject/war" 
and it was really simpler than I thought to upload it. I also linked my 
domain with Google Apps and added it my GAE app/website. my website is now 
live, but I have a few problems...

*1- *My website is currently on www subdomain and I have to redirect my 
root domain to it, apparently GAE doesn't allow me to host on the root 
domain and it's making some problems for me, for example I couldn't verify 
my root domain for Norton Norton Safe Web, because it requires to add a 
meta tag or a file to root domain. is there a way to host my website/app on 
the root domain instead?

*2-* I'm not sure why my website isn't indexed by Google yet, it's about a 
week that my website is online, I've verified and "Fetch as Google" in 
Google Webmaster Tools and I've links to it from my FB fan page and 
Twitter... do you think it's too soon to appear in the index? or have I 
done something wrong with GAE that doesn't allow Google to index it?

On Sunday, August 19, 2012 8:25:11 PM UTC-7, Robert Fischer wrote:
>
> Sorry, the logic to see if it's localhost isn't sound.
>
> This is a bit more robust and works to redirect users to the custom domain 
> (www.dealscorcher.com in my case):
>
> class HomepageHander(webapp2.RequestHandler):
> def get(self):
> if (self.request.url.lower().find('dealscorcher.com') is -1 and
> self.request.url.lower().find('localhost') is -1):
> self.redirect('http://www.dealscorcher.com')
> return
>
> -Robert Fischer
> www.DealScorcher.com
>
> On Sun, Aug 19, 2012 at 8:14 PM, Robert Fischer 
> 
> > wrote:
>
>> Hi Omne,
>>
>> I was trying to say you can check the 
>> url<https://developers.google.com/appengine/docs/python/tools/webapp/requestclass#Request_url>
>>  of 
>> the 
>> Request<https://developers.google.com/appengine/docs/python/tools/webapp/requestclass>object
>>  to generate a redirect from 
>> appid.appspot.com to whatever your domain is.
>>
>> Here's a quick snippet of code you can put at the beginning of your 
>> HomepageHandler's get method. It will redirect all *.appspot.com urls to 
>> your appid. I added my local address to my development server as well so I 
>> can still run the devserver.
>>
>> class HomepageHander(webapp2.RequestHandler):
>> def get(self):
>> if (self.request.url.lower() is not 'http://www.dealscorcher.com' 
>> or
>> self.request.url.lower() is not 'http://localhost:'):
>> self.redirect('http://www.dealscorcher.com')
>> return
>>
>> -Robert Fischer
>> www.DealScorcher.com
>>
>
Robert, thank you for the help, but I'm not sure what is the " 
HomepageHandler's get method" ? where should I add this? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/bDW0vIrom6AJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.