Skip to content

Commit ea246ec

Browse files
authored
Merge pull request #48 from rackerlabs/fix-bugs
Fix bugs
2 parents b6c5c20 + 22b8d1b commit ea246ec

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.9.0
1+
8.5.0

_config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
const _ = require('lodash');
44
const path = require('path');
55

6-
const _privateConfig = require('./_config.private') || {};
6+
let _privateConfig;
7+
8+
try {
9+
_privateConfig = require('./_config.private');
10+
} catch (e) {
11+
_privateConfig = {};
12+
}
713
const CONFIG = {};
814

915
// PATHS

bin/deploy.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@
77
const Build = require('./build');
88
const CONFIG = require('../_config');
99
const Clean = require('./clean');
10+
const _ = require('lodash');
1011
const fs = require('fs');
1112
const pkgcloud = require('pkgcloud');
1213

14+
// Do not continue without configuration
15+
if (_.isEmpty(CONFIG.cdn.storage)) {
16+
throw new Error('Storage configuration is not defined');
17+
}
18+
1319
const storageClient = pkgcloud.storage.createClient(CONFIG.cdn.storage);
1420

1521
function _upload (client, src, dest) {

source/components/navigation/navigation.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
hx-reveal {
5757
&[open] {
58-
& > header {
58+
header {
5959
.toggle-icon {
6060
transform: scaleY(-1);
6161
}

0 commit comments

Comments
 (0)