This repository was archived by the owner on Feb 26, 2023. It is now read-only.
File tree 5 files changed +21
-1
lines changed
5 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ gem 'eco'
39
39
# Store ActiveRecord IDs non-obviously in URL using hashids.
40
40
gem 'hashids'
41
41
42
+ gem 'puma'
43
+
42
44
# rails 4.2 removes support for respond_to/respond_with
43
45
gem 'responders' , '~> 2.0'
44
46
Original file line number Diff line number Diff line change 77
77
nokogiri (1.6.6.2 )
78
78
mini_portile (~> 0.6.0 )
79
79
pg (0.18.3 )
80
+ puma (2.14.0 )
80
81
rack (1.6.4 )
81
82
rack-cors (0.4.0 )
82
83
rack-test (0.6.3 )
@@ -154,6 +155,7 @@ DEPENDENCIES
154
155
hashids
155
156
jquery-rails
156
157
pg
158
+ puma
157
159
rack-cors
158
160
rails (= 4.2.0 )
159
161
rails_12factor
Original file line number Diff line number Diff line change
1
+ bundle exec puma -C config/puma.rb
Original file line number Diff line number Diff line change 1
1
# Be sure to restart your server when you modify this file.
2
2
3
3
# Version of your assets, change this if you want to expire all your assets.
4
- Rails . application . config . assets . version = '1.0 '
4
+ Rails . application . config . assets . version = '1.1 '
5
5
6
6
# Add additional assets to the asset load path
7
7
# Rails.application.config.assets.paths << Emoji.images_path
Original file line number Diff line number Diff line change
1
+ workers Integer ( ENV [ 'WEB_CONCURRENCY' ] || 2 )
2
+ threads_count = Integer ( ENV [ 'MAX_THREADS' ] || 5 )
3
+ threads threads_count , threads_count
4
+
5
+ preload_app!
6
+
7
+ rackup DefaultRackup
8
+ port ENV [ 'PORT' ] || 3000
9
+ environment ENV [ 'RACK_ENV' ] || 'development'
10
+
11
+ on_worker_boot do
12
+ # Worker specific setup for Rails 4.1+
13
+ # See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
14
+ ActiveRecord ::Base . establish_connection
15
+ end
You can’t perform that action at this time.
0 commit comments