Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 6275852

Browse files
committed
Merge branch 'alpha' of github.com:withspectrum/spectrum into 2.5.0
2 parents 6cf3691 + aaf759c commit 6275852

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/migrations/config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ try {
1616
ca = fs.readFileSync(path.join(process.cwd(), 'cacert'));
1717
} catch (err) {}
1818

19-
if (!ca && IS_PROD)
19+
const RUN_IN_PROD = !!process.env.AWS_RETHINKDB_PASSWORD;
20+
21+
if (!ca && RUN_IN_PROD)
2022
throw new Error(
2123
'Please provide the SSL certificate to connect to the production database in a file called `cacert` in the root directory.'
2224
);
2325

24-
const RUN_IN_PROD = !!process.env.AWS_RETHINKDB_PASSWORD;
25-
2626
if (RUN_IN_PROD && process.argv[4] === 'down') {
2727
throw new Error('Do not drop the production database!!!!!');
2828
}

0 commit comments

Comments
 (0)