O
O
Optimus2014-06-15 23:38:55
CMS
Optimus, 2014-06-15 23:38:55

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

3 answer(s)
S
Sergey, 2014-06-16
Protko @Fesor

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).

V
Viktor Vsk, 2014-06-16
@viktorvsk

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

P
Puma Thailand, 2014-06-16
@opium

just restore from backup

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question