Knex:Error Pool2 - error: password authentication failed for user
<p>I am having trouble with my migration to Ubuntu Linux.  I can use Postgres in the terminal. So I don't have a problem with the Postgres password.</p>

<p>When I type: <code>knex migrate:latest --env development</code><br>
I get: <br>
<code>Using environment: development
Knex:warning - Pool2 - Error: Pool was destroyed
Knex:Error Pool2 - error: password authentication failed for user "user"</code><br>
I've read from other answers in related questions to go into the pg_hba.conf and set the method to trust. I've done this, but no change. 
my knex.js file looks like this:<br>
<code>module.exports = { 
     devolopment: {client: 'pg',
     connection: 'postres://localhost/bikesdb'
     },
     production: {
     client: 'pg',
     connection: process.env.DATABASE_URL
     }
   };</code>
<br>
I'm not sure what I'm doing wrong. </p>