Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix qa deploy via capistrano #379

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 26 additions & 15 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
APP_PORTFOLIO_DEVISE_KEY = "04df95945691e59c493829316335a454f1b50706a68a2c9ae1fe0084c62d98acc8d1166b984b43beec108b3f756f7c27308f0451b0031ff085e674125639ffe7"
#reCaptcha settings
APP_PORTFOLIO_reCAPTCHA_SITE_KEY=6Lf0bwAVAAAAANKF5ZbjqY-2wTO2HhOnBePLqf3z
APP_PORTFOLIO_reCAPTCHA_SECRET_KEY=6Lf0bwAVAAAAAC9ypnph7cVrCVKxoGvYniMSSll4

# Admin Variables
ADMIN_USERNAME=manager
ADMIN_PASSWORD=Pub1ication$

# Mail Variables
MAIL_SENDER='Melissa Norris <[email protected]>'

# Database settings
APP_PORTFOLIO_DATABASE_ADAPTER=sqlite3
APP_PORTFOLIO_DATABASE_HOST=
APP_PORTFOLIO_DATABASE_NAME=db/development.sqlite3
APP_PORTFOLIO_DATABASE_PASSWORD=
APP_PORTFOLIO_DATABASE_POOL=5
APP_PORTFOLIO_DATABASE_PORT=
APP_PORTFOLIO_DATABASE_TIMEOUT=5000
APP_PORTFOLIO_DATABASE_USERNAME=
AAEC_DATABASE_ADAPTER=mysql2
AAEC_DATABASE_HOST=libitdbtest.libraries.uc.edu
AAEC_DATABASE_NAME=lotm
AAEC_DATABASE_PASSWORD=Y9joPskKX2
AAEC_DATABASE_POOL=5
AAEC_DATABASE_PORT=
AAEC_DATABASE_TIMEOUT=5000
AAEC_DATABASE_USERNAME=lotm_admin

APP_PORTFOLIO_PRODUCTION_MAILER_URL=localhost:3000
RAILS_ENV=production
RAILS_RELATIVE_URL_ROOT=/aaec
RAILS_MASTER_KEY=4e9a1edbef0e3a45e650d99d7912c9d6

#reCaptcha settings
APP_PORTFOLIO_reCAPTCHA_SITE_KEY=""
APP_PORTFOLIO_reCAPTCHA_SECRET_KEY=""
# Publication year
AAEC_PUBLICATION_YEAR_START="January 2020"
AAEC_PUBLICATION_YEAR_END="December 2020"

#mailer settings
MAIL_SMTP_ADDRESS='localhost'
# Expiration Date
EXPIRATION_DATE="Jul 15 2021"
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/coverage

# Ignore yarn.lock auto-generated file
yarn.lock
#yarn.lock

# Ignore .DS_Store files generated in MAC OS
.DS_Store
Expand All @@ -51,3 +51,7 @@ yarn.lock

#Ignore Rubymine files
.idea/

# Ignore production .env files
.env.production
.env.production.local
11 changes: 10 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ gem 'sass-rails', '~> 5.0'
# Use Devise for authentication
gem 'devise'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
gem 'uglifier', '~> 4.2', '>= 4.2.1'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'mini_racer', platforms: :ruby
# Use CoffeeScript for .coffee assets and views
Expand Down Expand Up @@ -120,3 +120,12 @@ end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]

# Required by net-ssh for supporting ssh-ed25519 keys during deployment
gem 'bcrypt_pbkdf', '~> 1.0', '>= 1.0.0'
gem 'ed25519', '~> 1.2', '>= 1.2.4'
gem 'net-ssh', '>= 6.0.0'

# Required for mutex_m since Ruby 3.4.0 will not include it by default
gem 'mutex_m'

60 changes: 41 additions & 19 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ GEM
execjs (~> 2)
base64 (0.2.0)
bcrypt (3.1.20)
bcrypt_pbkdf (1.1.1)
bcrypt_pbkdf (1.1.1-arm64-darwin)
bcrypt_pbkdf (1.1.1-x86_64-darwin)
bigdecimal (3.1.8)
bindex (0.8.1)
bootsnap (1.18.4)
Expand Down Expand Up @@ -118,7 +121,7 @@ GEM
concurrent-ruby (1.3.4)
crass (1.0.6)
csv (3.3.0)
date (3.4.0)
date (3.4.1)
devise (4.9.4)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
Expand All @@ -132,6 +135,7 @@ GEM
dotenv (= 3.1.4)
railties (>= 6.1)
drb (2.2.1)
ed25519 (1.3.0)
erubi (1.13.0)
execjs (2.10.0)
factory_bot (6.5.0)
Expand All @@ -140,11 +144,15 @@ GEM
factory_bot (~> 6.5)
railties (>= 5.0.0)
ffi (1.17.0-aarch64-linux-gnu)
ffi (1.17.0-aarch64-linux-musl)
ffi (1.17.0-arm-linux-gnu)
ffi (1.17.0-arm-linux-musl)
ffi (1.17.0-arm64-darwin)
ffi (1.17.0-x86-linux-gnu)
ffi (1.17.0-x86-linux-musl)
ffi (1.17.0-x86_64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
ffi (1.17.0-x86_64-linux-musl)
globalid (1.2.1)
activesupport (>= 6.1)
gritter (1.2.0)
Expand All @@ -159,7 +167,7 @@ GEM
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (2.7.6)
json (2.8.2)
language_server-protocol (3.17.0.3)
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
Expand All @@ -176,14 +184,14 @@ GEM
matrix (0.4.2)
method_source (1.1.0)
mini_mime (1.1.5)
minitest (5.25.1)
msgpack (1.7.3)
minitest (5.25.2)
msgpack (1.7.5)
mutex_m (0.3.0)
mysql2 (0.5.6)
net-imap (0.5.0)
net-imap (0.5.1)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.2)
timeout
net-scp (4.0.0)
Expand All @@ -207,16 +215,16 @@ GEM
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
orm_adapter (0.5.0)
ostruct (0.6.0)
ostruct (0.6.1)
parallel (1.26.3)
parser (3.3.5.1)
parser (3.3.6.0)
ast (~> 2.4.1)
racc
petergate (3.0.0)
activerecord (> 4.0.0)
popper_js (2.11.8)
public_suffix (6.0.1)
puma (6.4.3)
puma (6.5.0)
nio4r (~> 2.0)
racc (1.8.1)
rack (2.2.10)
Expand Down Expand Up @@ -260,8 +268,8 @@ GEM
rb-inotify (0.11.1)
ffi (~> 1.0)
rb-readline (0.5.5)
recaptcha (5.17.0)
regexp_parser (2.9.2)
recaptcha (5.17.1)
regexp_parser (2.9.3)
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
Expand All @@ -285,17 +293,17 @@ GEM
rspec-support (3.13.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.68.0)
rubocop (1.69.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.4, < 3.0)
rubocop-ast (>= 1.32.2, < 2.0)
rubocop-ast (>= 1.36.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.34.0)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.36.2)
parser (>= 3.3.1.0)
rubocop-rails (2.27.0)
activesupport (>= 4.2.0)
Expand Down Expand Up @@ -365,15 +373,17 @@ GEM
ostruct
thor (1.3.2)
tilt (2.4.0)
timeout (0.4.1)
timeout (0.4.2)
turbolinks (5.2.1)
turbolinks-source (~> 5.2)
turbolinks-source (5.2.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uglifier (4.2.1)
execjs (>= 0.3.0, < 3)
unicode-display_width (2.6.0)
unicode-display_width (3.1.2)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
warden (1.2.9)
rack (>= 2.0.9)
web-console (4.2.1)
Expand All @@ -391,13 +401,22 @@ GEM

PLATFORMS
aarch64-linux
aarch64-linux-gnu
aarch64-linux-musl
arm-linux
arm-linux-gnu
arm-linux-musl
arm64-darwin
x86-linux
x86-linux-gnu
x86-linux-musl
x86_64-darwin
x86_64-linux
x86_64-linux-gnu
x86_64-linux-musl

DEPENDENCIES
bcrypt_pbkdf (~> 1.0, >= 1.0.0)
bigdecimal
bootsnap (>= 1.1.0)
bootstrap (~> 5.3.3)
Expand All @@ -416,15 +435,18 @@ DEPENDENCIES
devise
dotenv-rails
drb
ed25519 (~> 1.2, >= 1.2.4)
factory_bot_rails
gritter
groupdate
jbuilder (~> 2.5)
jquery-rails
listen (>= 3.0.5, < 3.2)
mutex_m
mysql2
net-pop (~> 0.1.2)
net-protocol
net-ssh (>= 6.0.0)
nokogiri (>= 1.16.5)
petergate
puma (>= 6.4.3)
Expand All @@ -449,11 +471,11 @@ DEPENDENCIES
sqlite3 (~> 1.4)
turbolinks (~> 5)
tzinfo-data
uglifier (>= 1.3.0)
uglifier (~> 4.2, >= 4.2.1)
web-console (>= 3.3.0)

RUBY VERSION
ruby 3.3.3p89

BUNDLED WITH
2.5.11
2.5.23
2 changes: 1 addition & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//= require rails-ujs
//= require jquery3
//= require bootstrap-sprockets
//= require bootstrap
//= require gritter
//= require activestorage
//= require turbolinks
Expand Down
4 changes: 2 additions & 2 deletions app/views/front/dashboard.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</div>
<div class="card-body" style="overflow: scroll; height: 10%; background-color: black ; color: white">
<% if @indesign_count != 0 %>
<table class="table text-center w-25" style="padding-left: 20p; background-color: black">
<table class="table text-center w-25" style="padding-left: 20px; background-color: black">
<thead>
<tr>
<th class="align-left" style="padding-left: 20px; background-color: black ; color: white"><%= sortable "title", "Software Record" %>
Expand All @@ -28,7 +28,7 @@
<i class="fa fa-caret-down float-none"></i>
<% end %></th>
<th class="align-left" style="padding-left: 20px; background-color: black ; color: white">Status</th>
<th class="align-left" style="padding-left: 20px; background-color: black ; color: white""><%= sortable "production_url", "URL" %>
<th class="align-left" style="padding-left: 20px; background-color: black ; color: white"><%= sortable "production_url", "URL" %>
<% if params[:direction] == "asc" || params[:direction] == nil %>
<i class="fa fa-caret-up"></i>
<% else %>
Expand Down
11 changes: 0 additions & 11 deletions bin/yarn

This file was deleted.

2 changes: 1 addition & 1 deletion config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
WARN
ask :value, "Sure you want to continue deploying `#{branch}` on #{stage}? (Y)"

if fetch(:value) != 'Y'
if fetch(:value).to_s.downcase != 'y'
puts "\nDeploy cancelled!"
exit
end
Expand Down
2 changes: 1 addition & 1 deletion config/deploy/qa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set :rails_env, :production
set :bundle_without, %w[development test].join(' ')
set :branch, 'qa'
set :branch, 'fix_qa_deploy_via_capistrano'
set :default_env, path: '$PATH:/usr/local/bin'
set :bundle_path, -> { shared_path.join('vendor/bundle') }
append :linked_dirs, 'tmp', 'log'
Expand Down
10 changes: 9 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,13 @@
config.active_record.dump_schema_after_migration = false

# Change the Uglifier parsing engine
config.assets.js_compressor = Uglifier.new(harmony: true)
config.assets.js_compressor = Uglifier.new(
harmony: true,
mangle: false,
compress: false,
output: {
beautify: true,
comments: :all
}
)
end
5 changes: 0 additions & 5 deletions package.json

This file was deleted.

Loading