html - Where to store application data for webapp? -
I have some data for a webf that I would like to store on the server, what would be a good place to keep those files ?
-
I have some static HTML pages, which contain example specific information that need to be prevented from re-deploying the webpage, they should be editable by the administrator of the server. They are included in other HTML pages using the HTML object tag.
-
I want to store preferences on the server, but can not use the database. I am using JSP to write and read priorities. There are no sensitive data in the preferences. Currently I am using the log directory but obviously this is not a good option.
I am using tomacat I thought about creating an appdata / myapp directory under the webapp directory. is it good or bad?
If the administrator of the server can also deploy the app, then I will add data to the app myself Enter in Source Control, and deploy it all together. This way you get the modification control of the data, and if you fail the server then you have the ability to return the known good data.
If the administrator can not deploy the app, but can only edit the file, then you need to plan a backup of that file, in which the server or server file system dies.
The third solution will be a hybrid: Place the app in a source code repository, insert data into another source code repository. The administrator can edit the data and deploy the data. The developer can edit the source code, and deploy the source code. In this way, both control the amendment, but you have separated the responsibility of who is who keeps.
Comments
Post a Comment