Skip to content

Commit

Permalink
Fixing puma for heroku pt.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rojosinalma committed Sep 16, 2019
1 parent 3270bba commit bfc40f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ source "https://rubygems.org"

git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

gem 'dotenv'
gem 'puma'
gem 'discordrb', require: 'discordrb'
gem 'activesupport', require: 'active_support/all'
gem 'sinatra', require: 'sinatra/base'
gem 'sinatra-contrib'
gem 'dotenv'

group :development, :test do
gem 'pry-byebug'
Expand Down
2 changes: 1 addition & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

environment env
threads min_threads_count, max_threads_count
port ENV.fetch("BOT_WEB_PORT", 3000)
port ENV.fetch("PORT", 3000)
rackup 'config.ru'
pidfile ENV.fetch("PUMA_PIDFILE", 'tmp/pids/puma.pid')
state_path ENV.fetch("PUMA_STATE", 'tmp/pids/puma.state')
Expand Down

0 comments on commit bfc40f7

Please sign in to comment.