Skip to content

Instantly share code, notes, and snippets.

@johnpmitsch
Created January 29, 2020 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnpmitsch/5e7edc201a79adafefc1779d3b05f9ec to your computer and use it in GitHub Desktop.
Save johnpmitsch/5e7edc201a79adafefc1779d3b05f9ec to your computer and use it in GitHub Desktop.
run focaccia locally with `RACK_ENV=production bundle exec rackup config.ru`
diff --git a/focaccia/bot.rb b/focaccia/bot.rb
index 7ccdf4d..f279cdd 100755
--- a/focaccia/bot.rb
+++ b/focaccia/bot.rb
@@ -3,7 +3,7 @@
require 'cinch'
# load enviroment variables from .env in development
-require 'dotenv/load' if ENV['RACK_ENV'] == 'development'
+require 'dotenv/load'
# require all of plugin dir
Dir[File.dirname(__FILE__) + '/plugins/*.rb'].each { |file| require file }
diff --git a/focaccia/plugins/review_card.rb b/focaccia/plugins/review_card.rb
index eef960b..98282dd 100644
--- a/focaccia/plugins/review_card.rb
+++ b/focaccia/plugins/review_card.rb
@@ -1,4 +1,5 @@
require_relative '../lib/kanboard_card.rb'
+require_relative '../common/common'
module Focaccia
class ReviewCard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment