How to keep database content between consecutive runs of a Google App Engine app?

Advertisements I have a Java / Spring app running on the standard environment. Every time I deploy it to App Engine, the postgres database I’m using is reset. How to prevent that? My application.properties: spring.datasource.url=jdbc:postgresql:///*** spring.jpa.properties.hibernate.id.new_generator_mappings=false spring.jpa.properties.hibernate.format_sql=true spring.jpa.hibernate.ddl-auto=create logging.level.org.hibernate.SQL=DEBUG logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE My app.yaml: runtime: java17 instance_class: F1 automatic_scaling: max_idle_instances: 1 >Solution : You just need to… Read More How to keep database content between consecutive runs of a Google App Engine app?

Flask redirect after OAuth linking to http instead of https

Advertisements I use the following route to redirect an authenticated OAuth user to their account page: @app.route(‘/google/callback’) def authorized(): resp = google.authorized_response() if resp is None: return ‘Access denied: reason={0} error={1}’.format( request.args[‘error_reason’], request.args[‘error_description’] ) session[‘google_token’] = (resp[‘access_token’], ”) return redirect(url_for(‘account’,_external=True, _scheme=’https’)) However the redirect URL is to http://[domain].herokuapp.com/google/callback. Navigating between pages within my application keeps… Read More Flask redirect after OAuth linking to http instead of https

To filter data based on ID list found in other tab using App Script

Advertisements I want to scrape data, but only filter data if Col13 from the data have the IDs listed in another tab. If I hardcode for 1 ID, I managed to do as below: var sid = ss.getSheetByName(‘sid list’).getRange(‘A2:A’).getValues(); //capture list of IDs if(temp[13] == 243558369) { temp.push(counter) // console.log(temp) toPrint.push(temp) counter++ } This is… Read More To filter data based on ID list found in other tab using App Script