2votes

Resetting a Development Enviornment

What's the best way to reset a Sellvana development environment after a pull request and trigger a fresh reinstall? If I drop the database, Sellvana starts complaining with can't connect to database errors

ERROR: SQLSTATE[HY000] [1049] Unknown database 'sellvana_alpha_all`

If I remove the db.php file, Sellvana starts complaining about.

Access denied for user 'root'@'localhost

I can make these go away and trigger a installation by setting install_status to false in core/storage/config/core.php. However, I'm left with a gut level feeling I still may be missing things on the file system that have application state from the previous Sellvana version.

Short of a new git clone, is there a known list of steps to restore a Sellvana system to its factory defaults?

1 Answer

2votes

RIght after you delete the DB, create a new one with the same name right away.

It is also easy to change the current db name in `storage/config/db.php`. If currently in DEBUG or DEVELOPMENT mode, no need to clear cache.
bg Feb 22, 2014
...