Skip to content

Commit

Permalink
Another temp change
Browse files Browse the repository at this point in the history
  • Loading branch information
armenzg committed Feb 16, 2018
1 parent 4abc645 commit 58ec2b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/fetch/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default async function fetchText(
url,
{ ttl = defaultTtl, headers = {}, method = 'get' } = {},
) {
headers.referer = (process.env.NODE_ENV === 'development') ?
headers.referer = (process.env.NODE_HOME !== '/app/.heroku/node') ?
'localhost' : os.hostname();
console.log(headers);
const key = `cache:${url}`;
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import http from 'http';
import app from './app';

const os = require('os');

let server;

const load = () => {
console.log(os.hostname());
console.log(process.env);
// eslint-disable-next-line no-shadow
const server = http.createServer(app.callback());
server.on('listening', () => {
Expand Down

0 comments on commit 58ec2b1

Please sign in to comment.