update env key to FAUNADB_SERVER_SECRET

This commit is contained in:
DavidWells 2019-04-07 15:49:58 -07:00
parent 9b089e7c04
commit 271721bbc0
11 changed files with 18396 additions and 111 deletions

View file

@ -1,15 +1,8 @@
const chalk = require('chalk')
var util = require('util');
var exec = require('child_process').exec;
function clear(){
exec('clear', function(error, stdout, stderr){
util.puts(stdout);
});
}
function checkForFaunaKey() {
if (!process.env.FAUNADB_SECRET) {
console.log(chalk.yellow('Required FAUNADB_SECRET enviroment variable not found.'))
if (!process.env.FAUNADB_SERVER_SECRET) {
console.log(chalk.yellow('Required FAUNADB_SERVER_SECRET enviroment variable not found.'))
console.log(`
=========================
@ -17,7 +10,7 @@ You can create fauna DB keys here: https://dashboard.fauna.com/db/keys
In your terminal run the following command:
export FAUNADB_SECRET=YourFaunaDBKeyHere
export FAUNADB_SERVER_SECRET=YourFaunaDBKeyHere
=========================
`)