Posts

Showing posts with the label google-app-engine

deploying Angular 6 Universal to GCP App Engine

deploying Angular 6 Universal to GCP App Engine I'm looking for an example project that's using Angular 6 Universal and is successfully deploying to GCP App Engine. I've searched GitHub but can't find an example--the Universal Starter doesn't include deployment. Also, my old Angular 5 Universal config is not working for this new V6 project. The current error is coming from nginx: "502 Bad Gateway" It seems to be the favicon.ico file that's causing the problem--looks like a Node.js issue. I just dealt with this on a pure Node.js project (not Angular) and was able to resolve it, but I can't find the right config in the Angular context. server.ts app.use(favicon('src/favicon.ico')); angular.json (start of it) { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "appname": { "root...

Change appengine ndb key

Change appengine ndb key I have a game where I've (foolishly) made the db key equal to the users login email. I did this several years ago so I've got quite a few users now. Some users have asked to change their email login for my game. Is there a simple way to change the key? As far as I can tell I'd need to make a new entry with the new email and copy all the data across, then delete the old db entry. This is the user model but then I've got other models, like one for each game they are involved in, that store the user key so I'd have to loop though all of them as well and swap out for the new key. Before I embark on this I wanted to see if anyone else had a better plan. There could be several models storing that old user key so I'm also worried about the process timing out. It does keep it efficient to pull a db entry as I know the key from their email without doing a search, but it's pretty inflexible in hindsight 1 Ans...

permission IAM accidentally removed

Image
permission IAM accidentally removed I removed my permission from my project in google app engine, now I can not access more functionality of my project, which is still online, but I can not access any more, everything I click returns that I am not allowed What you were ? Owner? And do you mean now you're not able to go back and give yourselves the removed permission back? What & you have already tried ? Have you checked : cloud.google.com/appengine/docs/standard/python/….. please provide more details ! – VibrantVivek Jul 1 at 20:30 That. I am the sole owner of the project. In the IAM page, it has all the permissions, I created some, and it was remove, but I removed the main one, that was of the project DONOR, in this way, I lost all the permissions of everything, and I can no longer access to remove the p...

x-devapi unable to connect to database in Google app-engine

x-devapi unable to connect to database in Google app-engine I am deploying a simple nodejs server to App-engine which works well except for the database connection using the X-devapi . I am getting this error: nodejs X-devapi All routers failed. All routers failed. Here is the code I use: 'use strict'; const express = require('express'); const mysqlx = require('@mysql/xdevapi'); const app = express(); app.get('/', (req, res) => { const options = { user: 'user_name', password: '@pass',host: 'XX.XXX.XX.XXX' /*Here I used Public IP address on the of the SQL instance*/,port: XXXX /*I assigned port 8080 here*/, schema: 'db_name' }; (async function () { let session; try { session = await mysqlx.getSession(options); const collection = await session.getSchema(options.schema).createCollection('collection'); await collection.add({ name: 'foo' }).execute(); await collection.find().fields(...