Google AppEngine - updating my webapp after deploy

2024/10/9 0:51:30

friends! I'm fairly new to web app world and I have a question regarding Google AppEngine functions. I've installed the Launcher on my machine and signed up for the online platform (Python). I've added my project folder in the Launcher and hit "deploy" to have it online. However, when I edit/update my "main.py" file to move forward in the development the edits are not reflected online. In other words: I don't see any change, when I go to the link: [NAME].appspot.com and in fact, checking at the source code, I can see that it is still the first version I've developed. :(Shouldn't it update with em just saving the new .py version? Maybe it's a quite simple step I'm missing, but would be absolutely great if someone could help me :)

Extra info: I'm using Python 2.7 and have the SDK.

THANKS!! -Valentina

Answer

Local changes are immediately reflected only on the local development server. From the Make a change section of Quickstart for Python App Engine Standard Environment:

Make a change

You can leave the development server running while you develop yourapplication. The development server watches for changes in your sourcefiles and reloads them if necessary.

  1. Try it now: Leave the development server running, then edit main.py to change Hello, World! to something else.
  2. Reload http://localhost:8080/ to see the results.

The deployment step is what updates the live app. You need to repeat it whenever you want the latest code changes reflected by the live app. From Deploying a Python App:

Deploy your app to upload and run them on App Engine. When you deployyour apps, you create versions of those apps and their correspondingservices in App Engine.

https://en.xdnf.cn/q/118646.html

Related Q&A

Extract GPS coordinates from .docx file with python

I have some hectic task to do for which I need some help from python. Please see this word document.I am to extract texts and GPS coordinates from each row. There are currently over 100 coordinates in …

How to Serialize SQL data after a Join using Marshmallow? (flask extension)

I have 2 tables in SQL: class Zoo(db.Model):id = db.Column(db.Integer, primary_key=True)nome = db.Column(db.String(80), unique=True, nullable=False)idade = db.Column(db.Integer, unique=False, nullable=…

Python readline() is not reading a line with single space

I am reading a text file using readline(). My file contains below content with a space at second line:!" # $ % & When I print read values using-print("%s\n" % iso5_char)It prints-!&q…

Bisection search [duplicate]

This question already has answers here:Closed 11 years ago.Possible Duplicate:Using bisection search to determine I have posted other thread but it did not receive answers thus im trying to provide so…

What am i doing wrong with matplotlibs yticks?

My code is as follows (dont ask for the variable names, im german^^):import matplotlib.pyplot as plt import numpy as np strecke = [] zeit = []daten = open("BewegungBeschleunigung.csv")for i i…

Python- How to implement quick sort when middle element is the pivot?

There are many different versions of quickSort that pick pivot in different ways.Always pick the first element or the last element as the pivot Pick a random element as a pivot. Pick median as the pivo…

How to expose a form when a radio button is checked?

Consider the following sample html template,<html><body><input type="radio" name="x">x</input><br><input type="radio" name="y"&g…

How to generate perlin noise in pygame?

I am trying to make a survival game and I have a problem with perlin noise. My program gives me this:But I want something like islands or rivers. Heres my code: #SetUp# import pygame, sys, random pygam…

Inputting range of ports with nmap optparser

This is the scriptimport nmap import optparsedef nmapScan(tgtHost,tgtPort):nmScan = nmap.PortScanner()nmScan.scan(tgtHost,tgtPort)state=nmScan[tgtHost][tcp][int(tgtPort)][state]print "[*] " +…

Implementing a Python algorithm for solving the n-queens problem efficiently

I am working on a project that requires me to solve the n-queens problem efficiently using Python. I have already implemented a basic recursive algorithm to generate all possible solutions, but I am lo…