Use local environment to set secret key. Add localhost to PG database config.