rchain-community / rchain-dbr

RChain Distributed Budgeting and Rewards Bounty Web Site
https://rewards.rchain.coop/
10 stars 6 forks source link

responsive design conflicts with backups, sync #12

Closed dckc closed 6 years ago

dckc commented 6 years ago

@jimscarver , as you observed, backups aren't working.

When you and I and @David405 added the responsive design, we had to make this tweak to turn off the g2 theme:

https://github.com/dckc/rchain-dbr/blob/a709fe5ee5188612d558c48d1462b44e2f6fc83a/conf.ini.example#L6

Unfortunately, that setting goes before the first [section] of the config file.

Python's ConfigParser module doesn't like that. Nor does mysqlbackup.

dckc commented 6 years ago

I'm more inclined to tweak the python code than figure out how to tweak the PHP code.

  1. tweak python code that reads the config file to chop off the stuff before the first section
  2. rather that trying to re-use the config file for the mysqlbackup defaults file, write a temporary defaults file
dckc commented 6 years ago

The conflict with backups is fixed in:

The problem with sync was just a matter of service db_aux restart to sync with a password change I recently made. The "chop off the stuff before the first section" stuff was already there: headless_config.