Skip to content

Commit

Permalink
Merge pull request wearefriday#58 from wearefriday/pull-request-56
Browse files Browse the repository at this point in the history
Switch to Puma server per PR wearefriday#56
  • Loading branch information
Grant committed Apr 29, 2019
2 parents d3260fe + 9590882 commit 9541ab1
Show file tree
Hide file tree
Showing 9 changed files with 267 additions and 184 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.8
2.5.3
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
language: ruby
rvm:
- 2.3
- 2.5
before_install:
- gem update --system
- gem install bundler
bundler_args: "--without demo_test_run"
services:
- postgresql
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.3
FROM ruby:2.5.3

WORKDIR /opt
RUN curl -Ls https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 | tar -jxf -
Expand All @@ -8,8 +8,9 @@ RUN ln -s /opt/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/
WORKDIR /app
ADD Gemfile* /app/
RUN gem install bundler && bundle config build.nokogiri --use-system-libraries && bundle install --quiet --jobs 16 --retry 5 --without test
RUN bundle install

ADD . /app

EXPOSE 3000
CMD ["rails", "server", "-b", "0.0.0.0"]
CMD ["script/server"]
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

gem 'rails', '4.2.5'
gem 'rails'
gem 'pg'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
Expand All @@ -22,8 +22,8 @@ gem 'image_size'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Unicorn as the app server
gem 'unicorn'
# Use Puma as the app server
gem 'puma'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
Expand Down
Loading

0 comments on commit 9541ab1

Please sign in to comment.