Update vespa application without removing existing data - vespa

I want to update my vespa application on docker. I have added some new documents and also change and add some fields in existing documents.Also added java components in updated build. Now I want to deploy updated app on server without removing the existing data from vespa.How can I do this? Can you please help me?

Please refer to https://docs.vespa.ai/documentation/cloudconfig/application-packages.html - use deploy to deploy an updated application package. You can do this on a running instance - if there is a need for restart or re-feed, the deploy command will output this

Related

Why does google app engine seem to use old code?

I've setup Google App Engine to run my AdonisJS API for my website. I update the code using the CLI for google cloud services ("gcloud app deploy"). I get a success message from the terminal, and I have checked both the cloud build and version number, and both are the most recent deployment. However, when I try to use my website, I get an error due to the API using old code and trying to access table columns from my database that no longer exist. I have downloaded the most recent cloud build file and checked the codebase within it and the updated code is there. I have also tried deploying multiple times, and it still is using the old code. Does anyone know why this is happening and/or how to fix this?
If you need more information, let me know. Thanks
ANSWER:
Fixed this a while ago, but wanted to update here just in case others ran into this. I discovered that when deploying to GAE through the command line, my build command wasn't running prior to the deploy since my script had an error, so it was uploading updated code, but not an updated build. So just make sure to run the build command prior to uploading to GAE and everything should work.
In console.cloud.google.com, go to your GAE project and check which version of your project is running I.e. which one is receiving traffic
Clear your cache.

Deploy Strapi and MongoDB to a server

We have no clue about deployment of a react app that is currently running with strapi and a mongoDB.
The Problem is that me and my colleague can't see each others changes in the DB without importing the data files manually everytime.
We would like to be able to access the Strapi CMS from our server and store all the data in a shared DB. That way the customer does not need to open the code whenever he wants to change something.
We would like to avoid heroku and aws and deploy it on our own server.
Where should we start?
ps. We are Frontend guys!
For the database, you can use MongoDB Atlas.
Like this, you can have one database (hosted) for your development environment.
Here how to start with Strapi + MongoDB Atlas - https://strapi.io/documentation/3.0.0-beta.x/guides/databases.html#mongodb-installation

Google Cloud App Engine - Edit 1 file

I am new at Google Cloud and I would like to know if there is a way to edit only one file inside of an App Engine application.
This is my problem:
I am migrating from a normal hosting to google cloud and I am having some problems with my PHP code, I am using the same version like locally but I am getting some error in the cloud, so I need to change 1 or 2 files, update them and test the app, so is there any way to change that file directly on the server? To deploy i am using this command:
gcloud app deploy
But it takes about 10 minutes to deploy so is too slow my testing. Any suggestions?
Thanks.
Leandro
For the standard environment the answer is no, you need to deploy a new version of the app to modify a file. So the advice would be - make the most of testing your app locally. See somehow related Google AppEngine - updating my webapp after deploy
For the flexible environment (possibly your case as you mentioned 10 min deployment time, typical for the flexible env) there might be stuff to try, but tedious, see Google AppEngine - updating my webapp after deploy
There is a way to edit directly into the instance.
ssh into your instance and then start shell on your running docker as guided in this url. https://cloud.google.com/appengine/docs/flexible/python/debugging-an-instance
After login you can see your php source files.
Basically you will not have any editor. So do
$> apt update
$> apt install nano
$> nano index.php // edit your files
you can see something like
There is no way to change 1-2 files on the server so that it would update the app. Deployment is the process of updating the live app. If you want some changes to be made to the app that is already deployed, you will have to redeploy - there is no way around it. This is why it is recommended to test the app locally before (re)deploying so that you are sure everything is working fine.
If locally everything works fine and issues start happening only when the app is deployed, this should be investigated further and I would advise you to open a new question and provide as much details as possible regarding the problems, including full stack trace of the error, related code parts, your app.yaml contents as well.

How to deploy zeppelin application to the server?

I have a zeppelin application running on my local host.I want to deploy it to server. As I am a beginner I don't know the procedure to deploy. If any one have deployed zeppelin to server can you please describe the procedure for it ?
I have checked online source and official tutorial but I am not able to get the steps for its deployment.
What do you mean by application? Are you just talking about a notebook you created? If so you can simply export the notebook (from the menu in the notebook itself) and import it into the server instance (using import notebook from the splash screen) if it is a vanilla instance.
You will have to make sure the correct interpreter is available and set.
Unless there is something special about the local instance you have deployed, it would be easiest to just deploy it separately to the server using something like Docker.
https://zeppelin.apache.org/docs/0.7.3/install/docker.html
Perhaps you can clarify what it is you are trying to do.

How to display latest appcfg upload date/time in GAE-app?

I want to make it easy to display the date of when my GAE web application was last updated.
Anyone who knows how to retreive information from the GAE-account about the latest appcfg upload and make that date/time display on a jsp-page?
(I use Java)
You can parse this information from SystemProperty.applicationVersion.get(): Docs say:
The major version number for the currently running version of the application
plus a timestamp at which it was deployed.
This information isn't available from inside an app.
I'm in python-land, but you might be able to do the same in Java. I have an entity in the datstore that just keeps the last updated time.
I have my own deploy script (actually, to be precise, I'm using django-nonrel, which has a wrapper around appcfg.py, the GAE deploy script for python, which I've extended) which uses the remote-api to update that entity if a deploy succeeds.

Resources