Use Ruby 2.4.0 and deploy to herbert

This commit is contained in:
Rien Maertens 2018-08-07 23:02:17 +02:00
parent 775fd1cb64
commit db69e5dccb
No known key found for this signature in database
GPG Key ID: 943CAB70C511D23C
8 changed files with 98 additions and 96 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
.byebug_history
# Ignore bundler config.
/.bundle

View File

@ -1 +1 @@
2.3.0-dev
2.4.0

28
Gemfile
View File

@ -1,19 +1,21 @@
source 'https://rubygems.org'
gem 'byebug'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.4'
gem 'rails', '4.2.10'
# Assets
gem 'sass-rails', '~> 4.0.3'
gem 'bootstrap-sass', '3.2.0.0'
gem 'bootstrap-switch-rails'
gem 'bootstrap-switch-rails', '3.3.3'
gem 'uglifier', '>= 1.3.0'
gem 'jquery-rails'
gem 'jquery-rails', '4.1.0'
# Haml for templating!
gem "haml-rails", "~> 0.9"
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
gem 'turbolinks', '2.5.3'
# Friendly ids!
gem 'friendly_id', '~> 5.1.0'
@ -35,12 +37,12 @@ end
group :development do
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
gem 'sqlite3', '1.3.11'
gem 'annotate'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring', '1.6.2'
# Deployment
gem 'capistrano', '~> 3.1'
@ -51,7 +53,7 @@ group :development do
end
group :development, :test do
gem 'factory_girl_rails'
gem 'factory_girl_rails', '4.6.0'
gem 'faker', '1.4.2'
end
@ -63,21 +65,21 @@ gem 'will_paginate', '3.0.7'
gem 'bootstrap-will_paginate', '0.0.10'
# Paperclip for easy file attachment
gem 'paperclip'
gem 'paperclip', '4.3.4'
# Use devise for users and admins
gem 'devise'
gem 'devise', '3.5.6'
gem 'omniauth-oauth2', '1.3.1'
# Use cancancan for authorization
gem 'cancancan'
gem 'cancancan', '1.13.1'
# Default avatar for users
gem 'identicon'
gem 'identicon', '0.0.5'
# Run stuff in the background
gem 'daemons'
gem 'daemons', '1.2.3'
gem 'delayed_job', '~> 4.0'
gem 'delayed_job_active_record'
gem 'httparty'
gem 'httparty', '0.13.7'

View File

@ -1,38 +1,37 @@
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.4)
actionpack (= 4.2.4)
actionview (= 4.2.4)
activejob (= 4.2.4)
actionmailer (4.2.10)
actionpack (= 4.2.10)
actionview (= 4.2.10)
activejob (= 4.2.10)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.4)
actionview (= 4.2.4)
activesupport (= 4.2.4)
actionpack (4.2.10)
actionview (= 4.2.10)
activesupport (= 4.2.10)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.4)
activesupport (= 4.2.4)
actionview (4.2.10)
activesupport (= 4.2.10)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (4.2.4)
activesupport (= 4.2.4)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (4.2.10)
activesupport (= 4.2.10)
globalid (>= 0.3.0)
activemodel (4.2.4)
activesupport (= 4.2.4)
activemodel (4.2.10)
activesupport (= 4.2.10)
builder (~> 3.1)
activerecord (4.2.4)
activemodel (= 4.2.4)
activesupport (= 4.2.4)
activerecord (4.2.10)
activemodel (= 4.2.10)
activesupport (= 4.2.10)
arel (~> 6.0)
activesupport (4.2.4)
activesupport (4.2.10)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
@ -43,14 +42,15 @@ GEM
annotate (2.7.0)
activerecord (>= 3.2, < 6.0)
rake (~> 10.4)
arel (6.0.3)
arel (6.0.4)
bcrypt (3.1.10)
bootstrap-sass (3.2.0.0)
sass (~> 3.2)
bootstrap-switch-rails (3.3.3)
bootstrap-will_paginate (0.0.10)
will_paginate
builder (3.2.2)
builder (3.2.3)
byebug (10.0.2)
cancancan (1.13.1)
capistrano (3.4.0)
i18n
@ -84,6 +84,7 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.10.0)
concurrent-ruby (1.0.5)
coveralls (0.8.10)
json (~> 1.8)
rest-client (>= 1.6.8, < 2)
@ -93,6 +94,7 @@ GEM
tins (~> 1.6.0)
crack (0.4.3)
safe_yaml (~> 1.0.0)
crass (1.0.4)
daemons (1.2.3)
delayed_job (4.1.1)
activesupport (>= 3.0, < 5.0)
@ -123,8 +125,8 @@ GEM
multipart-post (>= 1.2, < 3)
friendly_id (5.1.0)
activerecord (>= 4.0.0)
globalid (0.3.6)
activesupport (>= 4.1.0)
globalid (0.4.1)
activesupport (>= 4.2.0)
haml (4.0.7)
tilt
haml-rails (0.9.0)
@ -146,24 +148,27 @@ GEM
httparty (0.13.7)
json (~> 1.8)
multi_xml (>= 0.5.2)
i18n (0.7.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
identicon (0.0.5)
chunky_png
jquery-rails (4.1.0)
rails-dom-testing (~> 1.0)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (1.8.3)
json (1.8.6)
jwt (1.5.1)
loofah (2.0.3)
loofah (2.2.2)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mime-types (2.99)
mail (2.7.0)
mini_mime (>= 0.1.1)
mime-types (2.99.3)
mimemagic (0.3.0)
mini_portile2 (2.0.0)
minitest (5.8.4)
multi_json (1.11.2)
mini_mime (1.0.0)
mini_portile2 (2.1.0)
minitest (5.11.3)
multi_json (1.13.1)
multi_xml (0.5.5)
multipart-post (2.0.0)
mysql2 (0.3.20)
@ -171,8 +176,8 @@ GEM
net-ssh (>= 2.6.5)
net-ssh (3.0.2)
netrc (0.11.0)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
oauth2 (1.1.0)
faraday (>= 0.8, < 0.10)
jwt (~> 1.0, < 1.5.2)
@ -192,31 +197,31 @@ GEM
cocaine (~> 0.5.5)
mime-types
mimemagic (= 0.3.0)
rack (1.6.4)
rack (1.6.10)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.4)
actionmailer (= 4.2.4)
actionpack (= 4.2.4)
actionview (= 4.2.4)
activejob (= 4.2.4)
activemodel (= 4.2.4)
activerecord (= 4.2.4)
activesupport (= 4.2.4)
rails (4.2.10)
actionmailer (= 4.2.10)
actionpack (= 4.2.10)
actionview (= 4.2.10)
activejob (= 4.2.10)
activemodel (= 4.2.10)
activerecord (= 4.2.10)
activesupport (= 4.2.10)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.4)
railties (= 4.2.10)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.7)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-dom-testing (1.0.9)
activesupport (>= 4.2.0, < 5.0)
nokogiri (~> 1.6)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (4.2.4)
actionpack (= 4.2.4)
activesupport (= 4.2.4)
rails-html-sanitizer (1.0.4)
loofah (~> 2.2, >= 2.2.2)
railties (4.2.10)
actionpack (= 4.2.10)
activesupport (= 4.2.10)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.5.0)
@ -264,7 +269,7 @@ GEM
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
spring (1.6.2)
sprockets (2.12.4)
sprockets (2.12.5)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
@ -279,13 +284,13 @@ GEM
net-ssh (>= 2.8.0)
term-ansicolor (1.3.2)
tins (~> 1.0)
thor (0.19.1)
thread_safe (0.3.5)
thor (0.19.4)
thread_safe (0.3.6)
tilt (1.4.1)
tins (1.6.0)
turbolinks (2.5.3)
coffee-rails
tzinfo (1.2.2)
tzinfo (1.2.5)
thread_safe (~> 0.1)
uglifier (2.7.2)
execjs (>= 0.3.0)
@ -308,9 +313,10 @@ DEPENDENCIES
airbrake (~> 4)
annotate
bootstrap-sass (= 3.2.0.0)
bootstrap-switch-rails
bootstrap-switch-rails (= 3.3.3)
bootstrap-will_paginate (= 0.0.10)
cancancan
byebug
cancancan (= 1.13.1)
capistrano (~> 3.1)
capistrano-passenger
capistrano-rails (~> 1.1)
@ -318,30 +324,30 @@ DEPENDENCIES
capistrano-rvm
codeclimate-test-reporter
coveralls
daemons
daemons (= 1.2.3)
delayed_job (~> 4.0)
delayed_job_active_record
devise
factory_girl_rails
devise (= 3.5.6)
factory_girl_rails (= 4.6.0)
faker (= 1.4.2)
friendly_id (~> 5.1.0)
haml-rails (~> 0.9)
httparty
identicon
jquery-rails
httparty (= 0.13.7)
identicon (= 0.0.5)
jquery-rails (= 4.1.0)
mysql2 (~> 0.3.18)
omniauth-oauth2 (= 1.3.1)
paperclip
rails (= 4.2.4)
paperclip (= 4.3.4)
rails (= 4.2.10)
rspec-rails
sass-rails (~> 4.0.3)
sdoc (~> 0.4.0)
spring
sqlite3
turbolinks
spring (= 1.6.2)
sqlite3 (= 1.3.11)
turbolinks (= 2.5.3)
uglifier (>= 1.3.0)
webmock
will_paginate (= 3.0.7)
BUNDLED WITH
1.11.2
1.16.1

View File

@ -28,6 +28,6 @@
%li
%p.navbar-text
Balance:
= link_to euro_from_cents(current_user.balance), "https://zeus.ugent.be/tab/users/#{current_user.name}"
= link_to euro_from_cents(current_user.balance), "https://tab.zeus.gent/users/#{current_user.name}"
.visible-xs.navbar-form
= render 'layouts/session_button'

View File

@ -4,7 +4,7 @@
set :application, 'Tap'
set :repo_url, 'git@github.com:ZeusWPI/Tap.git'
set :branch, 'master'
set :branch, 'fix-tap-on-herbert'
set :deploy_to, '/home/tap/production'
# Default branch is :master

View File

@ -1,4 +1,4 @@
server 'zeus.ugent.be', user: 'tap', roles: %w{web app db}, ssh_options: {
server 'tap.ugent.be', user: 'tap', roles: %w{web app db}, ssh_options: {
forward_agent: true,
auth_methods: ['publickey'],
port: 2222

View File

@ -79,13 +79,6 @@ Rails.application.configure do
Paperclip.options[:command_path] = "/usr/local/bin/"
# Help the asset pipeline for staging
config.x.host = 'zeus.ugent.be'
config.relative_url_root = "/tap"
config.action_mailer.default_url_options = {
host: config.x.host,
script_name: config.relative_url_root,
}
config.api_url = "https://zeus.ugent.be/tab"
config.x.host = 'tab.zeus.gent'
config.api_url = "https://tab.zeus.gent/"
end