You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently your application can only supports a development database.
It is a good idea to supply a test database url to run your tests on.
Otherwise you be deleting any information you add as you are working on the development database
I would do something like this:
// db_connection.jsletDB_URL=process.env.DATABASE_URL;if(process.env.NODE_ENV==='test'){DB_URL=process.env.TEST_DATABASE_URL;}if(!DB_URL){thrownewError('Environment variable DATABASE_URL must be set');}constparams=url.parse(DB_URL);
Currently your application can only supports a development database.
It is a good idea to supply a test database url to run your tests on.
Otherwise you be deleting any information you add as you are working on the development database
I would do something like this:
# config.env DATABASE_URL=postgres://admin:doggo@localhost:5432/dogspotting_dev TEST_DATABASE_URL=postgres://admin:doggo@localhost:5432/dogspotting_test DB_MAX_CONNECTIONS=4
The text was updated successfully, but these errors were encountered: