Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #546 from yegortokmakov/master
Browse files Browse the repository at this point in the history
static content directory
  • Loading branch information
Ben Brown authored Dec 19, 2016
2 parents faf08f2 + 908fe38 commit ed93974
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Facebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ function Facebookbot(configuration) {
throw new Error('Cannot start webserver without a port');
}

var static_dir = __dirname + '/public';
var static_dir = process.cwd() + '/public';

if (facebook_botkit.config && facebook_botkit.config.webserver && facebook_botkit.config.webserver.static_dir)
static_dir = facebook_botkit.config.webserver.static_dir;
Expand Down
2 changes: 1 addition & 1 deletion lib/SlackBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ function Slackbot(configuration) {
throw new Error('Specified port is not a valid number');
}

var static_dir = __dirname + '/public';
var static_dir = process.cwd() + '/public';

if (slack_botkit.config && slack_botkit.config.webserver && slack_botkit.config.webserver.static_dir)
static_dir = slack_botkit.config.webserver.static_dir;
Expand Down

0 comments on commit ed93974

Please sign in to comment.