1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Merge branch 'development'

This commit is contained in:
2018-07-24 15:15:49 +00:00
9 changed files with 26 additions and 24 deletions

View File

@@ -3,7 +3,7 @@ language: ruby
services: services:
- docker - docker
rvm: rvm:
- 2.5.1 - 2.4.4
env: env:
- DB=sqlite - DB=sqlite
script: script:

View File

@@ -1,6 +1,6 @@
source 'https://rubygems.org' source 'https://rubygems.org'
ruby '2.5.1' ruby '2.4.4'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '5.2.0' gem 'rails', '5.2.0'
# Use sqlite3 as the database for Active Record # Use sqlite3 as the database for Active Record
@@ -52,7 +52,7 @@ gem 'cancancan'
gem 'round_robin_tournament' gem 'round_robin_tournament'
gem 'rb-readline' gem 'rb-readline'
gem 'delayed_job_active_record' gem 'delayed_job_active_record'
#gem 'puma' gem 'puma'
gem 'passenger' gem 'passenger'
gem 'travis' gem 'travis'

View File

@@ -149,17 +149,18 @@ GEM
mini_portile2 (~> 2.3.0) mini_portile2 (~> 2.3.0)
orm_adapter (0.5.0) orm_adapter (0.5.0)
parallel (1.12.1) parallel (1.12.1)
parser (2.5.1.0) parser (2.5.1.2)
ast (~> 2.4.0) ast (~> 2.4.0)
passenger (5.3.3) passenger (5.3.3)
rack rack
rake (>= 0.8.1) rake (>= 0.8.1)
powerpack (0.1.2) powerpack (0.1.2)
puma (3.12.0)
pusher-client (0.6.2) pusher-client (0.6.2)
json json
websocket (~> 1.0) websocket (~> 1.0)
rack (2.0.5) rack (2.0.5)
rack-test (1.0.0) rack-test (1.1.0)
rack (>= 1.0, < 3) rack (>= 1.0, < 3)
rails (5.2.0) rails (5.2.0)
actioncable (= 5.2.0) actioncable (= 5.2.0)
@@ -203,10 +204,10 @@ GEM
mime-types (>= 1.16, < 4.0) mime-types (>= 1.16, < 4.0)
netrc (~> 0.8) netrc (~> 0.8)
round_robin_tournament (0.0.1) round_robin_tournament (0.0.1)
rubocop (0.58.0) rubocop (0.58.1)
jaro_winkler (~> 1.5.1) jaro_winkler (~> 1.5.1)
parallel (~> 1.10) parallel (~> 1.10)
parser (>= 2.5) parser (>= 2.5, != 2.5.1.1)
powerpack (~> 0.1) powerpack (~> 0.1)
rainbow (>= 2.2.2, < 4.0) rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
@@ -247,7 +248,7 @@ GEM
ethon (>= 0.8.0) ethon (>= 0.8.0)
tzinfo (1.2.5) tzinfo (1.2.5)
thread_safe (~> 0.1) thread_safe (~> 0.1)
uglifier (4.1.14) uglifier (4.1.15)
execjs (>= 0.3.0, < 3) execjs (>= 0.3.0, < 3)
unf (0.1.4) unf (0.1.4)
unf_ext unf_ext
@@ -278,6 +279,7 @@ DEPENDENCIES
mysql2 mysql2
newrelic_rpm newrelic_rpm
passenger passenger
puma
rails (= 5.2.0) rails (= 5.2.0)
rails_12factor rails_12factor
rb-readline rb-readline
@@ -292,7 +294,7 @@ DEPENDENCIES
uglifier uglifier
RUBY VERSION RUBY VERSION
ruby 2.5.1p57 ruby 2.4.4p296
BUNDLED WITH BUNDLED WITH
1.16.1 1.16.2

View File

@@ -1,3 +1,3 @@
worker: bundle exec rake jobs:work worker: bundle exec rake jobs:work
#web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development} web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}
web: bundle exec passenger start -p $PORT --max-pool-size 3 #web: bundle exec passenger start -p $PORT --max-pool-size 3

View File

@@ -5,7 +5,7 @@
# #
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first) # Mayor.create(name: 'Emanuel', city: cities.first)
if Rails.env.development? #if Rails.env.development?
User.create(id: 1, email: 'test@test.com', password: 'password', password_confirmation: 'password') User.create(id: 1, email: 'test@test.com', password: 'password', password_confirmation: 'password')
Tournament.create(id: 200, name: 'test', address: 'some place', director: 'some guy', director_email: 'hismail@email.com', tournament_type: 'Pool to bracket', user_id: 1, date: Date.today) Tournament.create(id: 200, name: 'test', address: 'some place', director: 'some guy', director_email: 'hismail@email.com', tournament_type: 'Pool to bracket', user_id: 1, date: Date.today)
School.create(id: 200, name: 'Central Crossing', tournament_id: 200) School.create(id: 200, name: 'Central Crossing', tournament_id: 200)
@@ -75,7 +75,7 @@ if Rails.env.development?
Wrestler.create(name: 'Guy 50', school_id: 204, weight_id: 204, original_seed: nil, season_win: 0, season_loss: 0, criteria: 'N/A') Wrestler.create(name: 'Guy 50', school_id: 204, weight_id: 204, original_seed: nil, season_win: 0, season_loss: 0, criteria: 'N/A')
Wrestler.create(name: 'Guy 51', school_id: 204, weight_id: 204, original_seed: nil, season_win: 0, season_loss: 0, criteria: 'N/A') Wrestler.create(name: 'Guy 51', school_id: 204, weight_id: 204, original_seed: nil, season_win: 0, season_loss: 0, criteria: 'N/A')
Wrestler.create(name: 'Guy 52', school_id: 204, weight_id: 204, original_seed: nil, season_win: 0, season_loss: 0, criteria: 'N/A') Wrestler.create(name: 'Guy 52', school_id: 204, weight_id: 204, original_seed: nil, season_win: 0, season_loss: 0, criteria: 'N/A')
end #end

View File

@@ -22,7 +22,7 @@ services:
test: curl --insecure https://127.0.0.1/ test: curl --insecure https://127.0.0.1/
db: db:
image: mysql:5.5 image: mysql:5.7
ports: ports:
- "3306:3306" - "3306:3306"
volumes: volumes:
@@ -42,12 +42,12 @@ services:
env_file: env_file:
- ./prod.env - ./prod.env
healthcheck: healthcheck:
test: ps -ef | grep rake | grep ruby test: kill -0 1
command: bundle exec rake jobs:work RAILS_ENV=production command: bundle exec rake jobs:work RAILS_ENV=production
memcached: memcached:
image: memcached image: memcached:1.5
mem_limit: 64000000 mem_limit: 64000000
restart: always restart: always
networks: networks:

View File

@@ -42,7 +42,7 @@ services:
test: curl --insecure https://127.0.0.1/ test: curl --insecure https://127.0.0.1/
db: db:
image: mysql:5.5 image: mysql:5.7
ports: ports:
- "3306:3306" - "3306:3306"
volumes: volumes:
@@ -82,7 +82,7 @@ services:
caching: caching:
restart: always restart: always
healthcheck: healthcheck:
test: ps -ef | grep rake | grep ruby test: kill -0 1
command: bundle exec rake jobs:work RAILS_ENV=production command: bundle exec rake jobs:work RAILS_ENV=production
deploy: deploy:
resources: resources:
@@ -94,7 +94,7 @@ services:
memory: 256M memory: 256M
memcached: memcached:
image: memcached image: memcached:1.5
deploy: deploy:
resources: resources:
limits: limits:

View File

@@ -1,4 +1,4 @@
FROM ruby:2.5.1 FROM ruby:2.4.4
RUN apt-get -qq update \ RUN apt-get -qq update \
&& apt-get -qq install -y \ && apt-get -qq install -y \

View File

@@ -1,4 +1,4 @@
FROM ruby:2.5.1 FROM ruby:2.4.4
HEALTHCHECK --start-period=30s CMD curl --insecure https://127.0.0.1/ HEALTHCHECK --start-period=30s CMD curl --insecure https://127.0.0.1/
@@ -70,5 +70,5 @@ RUN RAILS_ENV=production bundle exec rake assets:precompile
# By default, simply start puma. # By default, simply start puma.
WORKDIR /rails WORKDIR /rails
#CMD bundle exec puma -t 3:3 -b 'ssl://0.0.0.0:443?key=/ssl/server.key&verify_mode=none&cert=/ssl/server.crt' -e production CMD bundle exec puma -t 3:3 -b 'ssl://0.0.0.0:443?key=/ssl/server.key&verify_mode=none&cert=/ssl/server.crt' -e production
CMD bundle exec passenger start -p 443 --max-pool-size 3 --environment production --ssl --ssl-certificate /ssl/server.crt --ssl-certificate-key /ssl/server.key #CMD bundle exec passenger start -p 443 --max-pool-size 3 --environment production --ssl --ssl-certificate /ssl/server.crt --ssl-certificate-key /ssl/server.key