App Engine deploy to somewhere that is not project_id.appspot.com - google-app-engine

Exactly as title says, am trying to deploy project to App Engine but whenever try always says deploying to project_id.appspot.com
I have domain recently transferred from original registrar to Google Domains, how deploy to my domain instead of project_id.appspot.com because nobody will go there? I have been working for months on project and need to get online within next couple of weeks before end of month

You need to set up your domain to direct traffic to the appspot location, rather than deploy the code "to" your domain.
https://cloud.google.com/appengine/docs/standard/go/using-custom-domains-and-ssl#adding_a_custom_domain_for_your_application

Related

Replacing the existing Project on Google Cloud Platform

I have deployed a Java Web application on Google Cloud platform and have purchased a domain and SSL Certificate from GoDaddy.com.
Its a simple application with a login page and a registration, where a specific(only one user) will have login credentials and post login will submit a form which will be saved in google DATASTORE in Google Cloud Platform(GCP).
I have two queries here :
1)
My application works perfectly,on my machine and even few machines around my home (as i have verified in few cyber centres around) but not at a client place located in different city(150 miles away). I'm not sure,as the client is not running any firewall or any browser plugin, as i have not visited the client place yet.
The call is as below.
Domain purchased from godaddy.com is : "ABC.in"
App engine project linked to this domain is : "web-abc"
If we hit "ABC.in" in browser it will in-turn call "web-abc.appspot.com".
in the background.Now though the login page loads,the client complains that the next subsequent pages does not load and page becomes blank.But for me in my system it works perfectly,as i can see the updated DATASTORE in GCP.
2)
Once i configure my DNS at GoDaddy.com, i'm unable to make any changes to the project hosted on GCP app engine.So i decided to create a new project and host it on the GCP. But GCP app engine page does not show any option to replace a project as it showed me during my first project setup.
I need to replace project "web-abc" linked to "ABC.in" with "web-pqr".
Please Please help...!
Thanks
To answer your second query you can just rest your CNAME record in the GODADDY DNS configuration and add the web-pqr reqq. That should work. Rest of the question< i really don't get it. Please share some error message or the screenshot when you try make change to your exiting project.

Google App Engine + Custom domain

I was trying to map a custom domain name to site I have created in Google App Engine. However, the custom domain is not getting applied to the site. Below are the steps that I have performed after checking Google Help Sites and stackoverflow answers.
1. Created / Uploaded Google App Engine Site
http://myGoogleSite.appspot.com/
2. Purchased a domain name
mydomain.com
3. Created a CNAME Record with my domain name provider
Name: www
Value: ghs.google.com
4. Created a Google apps account
https://www.google.com/a/mydomain.com
5. Verified domain name in Google apps account
6. Enabled services for Google App Engine.
Added site http://myGoogleSite.appspot.com/ (Created in Step 1)
7. Google Admin Panel
Settings > Select Google App Engine site
Added New Web Address
http://www.mydomain.com
RESOLVED
The issue has been resolved without any other changes after a day. I think the CNAME entry which I had added in domain name server did get applied a day later. Though I had checked it through dnsstuff.com on the same day and they were reflected correctly.
If the CNAME www does not work when directed to ghs.google.com, try ghs.googlehosted.com instead. It's what at least some of their docs say.
For a company that can pretty accurately sift through millions of pages for related data, their documentation on their own products sucks hard.
The issue has been resolved without any other changes after a day. I think the CNAME entry which I had added in domain name server did get applied a day later. Though I had checked it through dnsstuff.com on the same day and they were reflected correctly

GAE: How to redirect?

I've got a GoDaddy Domain.
I've got a Google App Engine account.
And I've got my domain linked to Google Apps.
Here's the actual site: www.htmltetris.com
What i'm trying to do here is to ensure that as many people as possible can all-of-a-sudden access my website (hosted on GAE) through that domain.
Currently it looks like everything already runs, at least my domain (htmltetris.com) actually goes to the GAE server.
Still, if you head to htmltetris.com you end up with crap. What must I change? Should I add a CNAME entry to redirect to www?
http://support.google.com/a/bin/answer.py?hl=en&answer=2518373

How long does it take for a domain to be fully implemented for a new App Engine application?

A few months ago I posted this question because I tried to follow all of the Google instructions, perfectly, for setting up a domain with your Google App Engine application.
I still couldn't get my new domain (purchased through Google) to work properly. After a bit of triple checking in my Google Apps account and DNS setting tweaks (with the ENOM registrar which Google uses), I gave up and figured I'd just wait a few days to see what happened.
Surprise, after a few days my domain started to work without any problems and I've begun to wonder if the problem was that it takes Google a bit of time to get everything setup on there end.
Today, I've once again published an App Engine application and went through the process of purchasing a domain through Google and setting it up in Google Apps. After following Googles instructions, going to my new domain points to a generic welcome page (seen here.)
I have a hunch that I've setup my web site correctly and I should probably just be patient. However, I've never seen Google documentation stating that the setup may take a while, so I'm still a wee bit skeptical.
How long should I have to wait for my domain, Apps site and App Engine application to be fully setup and functional against my new domain?
When you register your new Domain name, the new Domain will typically take between 24 to 96 hours to propagate.
Once the Domain is propagated, you can setup your Google App Engine application in few minutes.
Usually you will need to tweak the DNS of your Domain for a couple of operations that does not require more than 10 minutes of work:
TXT record creation to allow Google to verify you own that Domain
CNAME record creation to map your App engine application to the new registered Domain

How are people using Google App-Engine apps with their own domains?

I've been fooling around with the Google App Engine for a few days and I have a little hobby application that I want to write and deploy.
However I'd like to set it up so that users are not directly accessing the app via appspot.com.
Is hosting it through Google Apps and then pointing it at my own domain the only way to go? I looked at that a little bit and it seemed like a pain to implement but maybe I'm just missing something.
My other thought was to write the app-engine piece as a more generic web-service.
Then I could have the user-facing piece be hosted anywhere, written in any language, and have it query the appspot.com url.
Anyone have any luck with the web-service approach?
The reason Google Apps is required is because you need somewhere to a) verify you own the domain (otherwise, you might point it at app engine, then I might hijack it by adding it to my account) and b) set up domain mappings (which subdomains point to which of your appengine apps).
Since this stuff already exists in Apps, it seems silly to duplicate it in AppEngine.
As has been pointed out, it doesn't cost anything, and you do not need to "move" anything to Google. You simple created a cname record with a random name to verify you own the domain, and a cname for the subdomain you wish to point at App Engine. This only takes a few minutes, and once it's done, it's done forever.
Note: If you host your site elsewhere and use webservices, you need to scale the site/frontend. If you host on app engine, you get this for free :-)
I wrote an article on my blog about redirecting *.appspot.com domains to your custom domain to keep your branding:
http://blog.dantup.com/2009/12/redirecting-requests-from-appid-appspot-com-to-a-custom-domain
To do this, I believe you need to be using Google Apps and have a custom domain setup for Google Apps. Then, you deploy your app into your Google Apps domain.
Here is google's official instructions on how to do that:
http://code.google.com/appengine/docs/domain.html
I have used this process for a couple of sites and it is easy and painless, provided you have control on the DNS records for your domain (you should).
OK, we're now at the end of 2017 and things are a lot different regarding App Engine and custom domains. It's easy now!
Go to the app engine dashboard for your app and choose Settings, then go to the Custom Domains tab. From there, choose Add custom domain.
The tricky part is that Google needs to verify that you control the domain, so they ask you to put a TXT record in the DNS for your domain. Once you do that and Google it, you become "verified" as the owner of the domain.
After that, Google will give you a bunch of A and AAAA (for IP6) records to put in your DNS. Once you've done that, you should be good to go.
It can be easily done using request.getRequestURI() method. If the URL doesn't include your domain, just redirect it to the desired URL using
resp.sendRedirect("<your domain>")
Otherwise load a error page using
request.getRequestDispatcher("<error-page>").forward(request, response);

Resources