Skip to content

Commit

Permalink
Renamed file and switched to console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Dec 9, 2018
1 parent 2d71826 commit 2b3e85e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"defs": "node scripts/export-service-definitions-cli.js > service-definitions.yml",
"build": "npm run defs && npm run features && next build && next export -o build/",
"heroku-postbuild": "npm run build",
"heroku-start": "node scripts/export-heroku-secrets.js",
"heroku-start": "node scripts/export-heroku-secrets-cli.js",
"analyze": "ANALYZE=true LONG_CACHE=false BASE_URL=https://img.shields.io npm run build",
"start:server": "HANDLE_INTERNAL_ERRORS=false RATE_LIMIT=false node server 8080 ::",
"now-start": "node server",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const path = require('path')
const secretsPath = path.join(__dirname, '..', 'private', 'secret.json')

if (fs.existsSync(secretsPath)) {
console.info('Found existing private/secret.json, not overwriting.')
console.log('Found existing private/secret.json, not overwriting.')
} else {
console.info('private/secret.json does not exist, creating.')
console.log('private/secret.json does not exist, creating.')
const secrets = { wheelmap_token: process.env.WHEELMAP_TOKEN }
const secretsString = JSON.stringify(secrets)
fs.writeFileSync(secretsPath, secretsString)
Expand Down

0 comments on commit 2b3e85e

Please sign in to comment.