在dyno重启后在PHP应用程序中更改主页

Each time the dyno restarts (after a new commit, for instance), all urls I enter are automatically rewritten to /index.php/install until I finish the installation procedure, which (as expected) flushes the database. I couldn't find where such behavior could be changed and it's a problem since it means that I can't do any change on the app without scrapping the database!

I'm not very familiar with either PHP or Apache. I assumed that Procfile and .httaccess might hold the key to my problem but I couldn't find in either a line that would implement a logic that would say: if I've just restarted, then root page should be install instead of login AND prevent any other page from opening.