Configure for deployment with zeit now (#1308)
I'm experimenting with Zeit Now as another hosting option. These changes enable a working deployment.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
const path = require('path');
|
||||
const crypto = require('crypto');
|
||||
const log = require('./log');
|
||||
const queryString = require('query-string');
|
||||
@@ -13,8 +14,9 @@ const mapKeys = require('lodash.mapkeys');
|
||||
// with a JsonSave object.
|
||||
let githubUserTokens = {data: []};
|
||||
|
||||
function scheduleAutosaving() {
|
||||
const githubUserTokensFile = './private/github-user-tokens.json';
|
||||
function scheduleAutosaving(config) {
|
||||
const { dir: persistenceDir } = config;
|
||||
const githubUserTokensFile = path.resolve(persistenceDir, 'github-user-tokens.json');
|
||||
autosave(githubUserTokensFile, {data: []}).then(save => {
|
||||
githubUserTokens = save;
|
||||
for (let i = 0; i < githubUserTokens.data.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user