Answer the question
In order to leave comments, you need to log in
Demo CMS?
I saw that they give demo access to the CMS, sometimes you go there, you can edit, delete articles, add sections, but once a day the CMS is updated and the list of sections again becomes standard and the number of articles and their texts too.
How can this be done? cron script? But what exactly is he supposed to do? Delete all unnecessary records in the database and change the rest of the text to standard? And also delete all unnecessary files from the server if someone uploaded photos to the gallery)?
Answer the question
In order to leave comments, you need to log in
Well, the easiest option is to write an auto-installer script that, before installation, will drop and re-create the database if there is one, and delete everything before installation (ideally, there should be a clean installation every time).
Cron:
1) rm -rf /path/to/document/root
2) unzip cms.zip
3) mysql - u CMS -p PASS CMS_db < CMS_seeds.sql
(Just in case:)
4) service mysql restart
5) service nginx restart
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question