Page 1 of 1

Servoy Developer catastrophe

PostPosted: Mon Dec 03, 2018 6:46 pm
by Westy
Fortunately, we have never had a Servoy Developer catastrophe. However, we want to be sure we fully understand all the pieces necessary to reconstruct a Servoy Developer server.

What exactly does the servoy_repository do in a Servoy Developer only installation?

In the event of a catastrophe can Servoy solutions be restored only using the contents of the servoy_workspace folder, or is a copy of the servoy_repository also needed?

Dean Westover
Choices Software, Inc.

Re: Servoy Developer catastrophe

PostPosted: Mon Dec 03, 2018 7:04 pm
by jcompagner
there is not really a "developer server"
but in repository doesn't do much in a developer anymore. You could even work with the developer without that whole database.

All sources (your workspace) should be a in GIT or anything like that. (so under version control on a server)
But yes the workspace is always your latest copy

Re: Servoy Developer catastrophe

PostPosted: Mon Dec 03, 2018 7:24 pm
by sean
Hi Dean,

Also a good practice to make a "Tag" in your source control system that corresponds to a given build.
Then you know, from which point in your revision history, to generate a build that is exactly the same as the one you have in production.

Re: Servoy Developer catastrophe

PostPosted: Mon Dec 03, 2018 9:50 pm
by Westy
Thank you Johan and Sean.

Dean

Re: Servoy Developer catastrophe

PostPosted: Wed Dec 05, 2018 5:08 pm
by sbutler
What we do:
- Follow good source control practices. We've adopted GitFlow and I highly recommend it.
- Don't forget about your non-servoy source code dependencies. Like plugins, extra files in the application_server/server/webapps/ROOT folder. Also your servoy properties files, Jasper reports, etc. Make sure they are all under source control. We add plugins and other dependencies into source control, and then use an ant script so each developer can run it, and it installs all the proper dependencies into their installation.
- Make sure your production repository database is backed up. In event of server catastrophe, restoring that will restore all your source
- If you have a code signing cert you use, make sure its backed up someplace safe too.

PS. to answer your question about getting source from the repository...Yes, that is also possible, but not desired and a pain to do. The option on the application server to use a team provider. Its not recommended, but is a possible fail-safe that I've had to use before (old developer left a company, and didn't use source control). https://wiki.servoy.com/display/DOCS/Se ... m+Provider