Skip to content

Instantly share code, notes, and snippets.

@rorymckinley
Last active February 20, 2017 11:33
Show Gist options
  • Save rorymckinley/52e7a321c9c1d22bb10583e54844d0c0 to your computer and use it in GitHub Desktop.
Save rorymckinley/52e7a321c9c1d22bb10583e54844d0c0 to your computer and use it in GitHub Desktop.
Assets for gem not appearing in 3.22.X asset path
gem: https://rubygems.org/gems/anjlab-bootstrap-rails/versions/3.0.0.3
GEMFILE BEFORE:
****************************************************************************************************************
source 'https://rubygems.org'
source "http://xxxxxxxxxxxxxxx" do
gem "htaccess", "~> 0.0.2"
gem "htpasswd", "~> 0.0.1"
end
gem 'rails', '3.2.22.3'
gem 'mysql2', '~> 0.3.10'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
# Gems used only for assets and not required
# in production environments by default.
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
group :development, :test do
gem 'rspec'
gem 'rspec-rails'
gem 'simplecov'
gem 'simplecov-rcov'
gem 'headless', '0.3.1'
end
group :test do
gem 'capybara'
gem 'capybara-webkit'
gem 'dotenv'
gem 'mountebank'
gem 'test-unit'
end
gem 'jquery-rails'
gem 'faraday', '~> 0.9.2'
gem 'anjlab-bootstrap-rails', :require => 'bootstrap-rails',
:github => 'anjlab/bootstrap-rails',
:branch => '3.0.0'
gem 'bootstrap-glyphicons'
gem 'bootstrap-datepicker-rails'
group :development, :test, :deployment do
gem 'capistrano'
gem 'capistrano-ext'
gem 'capistrano-override-configs'
end
gem 'airbrake', '~> 5.6'
gem 'whenever', '~> 0.9.7'
****************************************************************************************************************************************************************************
GEMFILE AFTER:
******************************************************************************************************************************************************************************
source 'https://rubygems.org'
source "http://xxxxxxxxxx" do
gem "htaccess", "~> 0.0.2"
gem "htpasswd", "~> 0.0.1"
end
gem 'rails', '3.2.22.3'
gem 'mysql2', '~> 0.3.10'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
# Gems used only for assets and not required
# in production environments by default.
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
group :development, :test do
gem 'rspec'
gem 'rspec-rails'
gem 'simplecov'
gem 'simplecov-rcov'
gem 'headless', '0.3.1'
end
group :test do
gem 'capybara'
gem 'capybara-webkit'
gem 'dotenv'
gem 'mountebank'
gem 'test-unit'
end
gem 'jquery-rails'
gem 'faraday', '~> 0.9.2'
gem 'anjlab-bootstrap-rails', '3.0.0.3'
gem 'bootstrap-glyphicons'
gem 'bootstrap-datepicker-rails'
group :development, :test, :deployment do
gem 'capistrano'
gem 'capistrano-ext'
gem 'capistrano-override-configs'
end
gem 'airbrake', '~> 5.6'
gem 'whenever', '~> 0.9.7'
******************************************************************************************************************************************************
Rails.application.config.assets.paths BEFORE:
[
"/var/www/xxxxxxxxx/releases/20170209111045/app/assets/images",
"/var/www/xxxxxxxxx/releases/20170209111045/app/assets/javascripts",
"/var/www/xxxxxxxxx/releases/20170209111045/app/assets/stylesheets",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/bootstrap-datepicker-rails-1.6.4.1/vendor/assets/javascripts",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/bootstrap-datepicker-rails-1.6.4.1/vendor/assets/stylesheets",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/bootstrap-glyphicons-0.0.1/app/assets/fonts",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/bootstrap-glyphicons-0.0.1/app/assets/stylesheets",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/bundler/gems/bootstrap-rails-776c4d91f0f5/app/assets/fonts",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/bundler/gems/bootstrap-rails-776c4d91f0f5/app/assets/javascripts",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/bundler/gems/bootstrap-rails-776c4d91f0f5/app/assets/stylesheets",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/bundler/gems/bootstrap-rails-776c4d91f0f5/vendor/assets/javascripts",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/jquery-rails-3.0.4/vendor/assets/javascripts",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/assets/javascripts"
]
Rails.application.config.assets.paths AFTER:
["/var/www/xxxxxxxxx/releases/20170216122449/app/assets/images",
"/var/www/xxxxxxxxx/releases/20170216122449/app/assets/javascripts",
"/var/www/xxxxxxxxx/releases/20170216122449/app/assets/stylesheets",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/bootstrap-datepicker-rails-1.6.4.1/vendor/assets/javascripts",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/bootstrap-datepicker-rails-1.6.4.1/vendor/assets/stylesheets",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/bootstrap-glyphicons-0.0.1/app/assets/fonts",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/bootstrap-glyphicons-0.0.1/app/assets/stylesheets",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/jquery-rails-3.0.4/vendor/assets/javascripts",
"/var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/assets/javascripts"
]
*******************************************************************************************************************************************************
application.rb:
require File.expand_path('../boot', __FILE__)
# Pick the frameworks you want:
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"
require "sprockets/railtie"
# require "rails/test_unit/railtie"
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
Bundler.require(*Rails.groups(:assets => %w(development test)))
# If you want your assets lazily compiled in production, use this line
# Bundler.require(:default, :assets, Rails.env)
end
module xxxxxxxxx
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Custom directories with classes and modules you want to be autoloadable.
# config.autoload_paths += %W(#{config.root}/extras)
config.autoload_paths += %W(#{config.root}/lib)
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named.
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
# Activate observers that should always be running.
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password, :personal_info]
# Enable escaping HTML in JSON.
config.active_support.escape_html_entities_in_json = true
# Use SQL instead of Active Record's schema dumper when creating the database.
# This is necessary if your schema can't be completely dumped by the schema dumper,
# like if you have constraints or database-specific column types
# config.active_record.schema_format = :sql
# Enforce whitelist mode for mass assignment.
# This will create an empty whitelist of attributes available for mass-assignment for all models
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
# parameters by using an attr_accessible or attr_protected declaration.
# config.active_record.whitelist_attributes = true
# Enable the asset pipeline
config.assets.enabled = true
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
end
end
*********************************************************************************************************************
application.js
*********************************************************************************************************************
//= require jquery
//= require jquery_ujs
//= require twitter/bootstrap/modal
//= require bootstrap-datepicker
//= require_tree .
*********************************************************************************************************************
* executing "cd -- /var/www/xxxxxxxxx/releases/20170216122449 && RAILS_ENV=staging RAILS_GROUPS=assets bundle exec rake assets:precompile"
servers: ["xxxxxxxxx-host-machine"]
[xxxxxxxxx-host-machine] executing command
*** [err :: xxxxxxxxx-host-machine] rake aborted!
*** [err :: xxxxxxxxx-host-machine] couldn't find file 'twitter/bootstrap/modal'
*** [err :: xxxxxxxxx-host-machine] (in /var/www/xxxxxxxxx/releases/20170216122449/app/assets/javascripts/application.js:15)
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/context.rb:103:in `resolve'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/context.rb:143:in `require_asset'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/directive_processor.rb:215:in `process_require_directive'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/directive_processor.rb:165:in `block in process_directives'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/directive_processor.rb:163:in `each'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/directive_processor.rb:163:in `process_directives'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/directive_processor.rb:97:in `evaluate'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/context.rb:194:in `block in evaluate'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/context.rb:191:in `each'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/context.rb:191:in `evaluate'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:12:in `initialize'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:249:in `new'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:249:in `block in build_asset'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:270:in `circular_call_protection'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:248:in `build_asset'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in `block in build_asset'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/caching.rb:19:in `cache_asset'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in `build_asset'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in `find_asset'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/index.rb:60:in `find_asset'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/bundled_asset.rb:16:in `initialize'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:252:in `new'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:252:in `build_asset'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in `block in build_asset'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/caching.rb:19:in `cache_asset'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in `build_asset'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in `find_asset'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/index.rb:60:in `find_asset'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/environment.rb:78:in `find_asset'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.22.3/lib/sprockets/static_compiler.rb:19:in `block in compile'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:219:in `block in each_logical_path'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:206:in `block (2 levels) in each_file'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:196:in `each'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:196:in `each_entry'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:204:in `block in each_file'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:203:in `each'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:203:in `each_file'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:217:in `each_logical_path'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.22.3/lib/sprockets/static_compiler.rb:18:in `compile'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.22.3/lib/sprockets/assets.rake:56:in `internal_precompile'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.22.3/lib/sprockets/assets.rake:70:in `block (3 levels) in <top (required)>'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/airbrake-5.6.1/lib/airbrake/rake/task_ext.rb:19:in `execute'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.22.3/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/airbrake-5.6.1/lib/airbrake/rake/task_ext.rb:19:in `execute'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.22.3/lib/sprockets/assets.rake:23:in `invoke_or_reboot_rake_task'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.22.3/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
*** [err :: xxxxxxxxx-host-machine] /var/www/xxxxxxxxx/shared/bundle/ruby/1.9.1/gems/airbrake-5.6.1/lib/airbrake/rake/task_ext.rb:19:in `execute'
*** [err :: xxxxxxxxx-host-machine] Tasks: TOP => assets:precompile:primary
*** [err :: xxxxxxxxx-host-machine] (See full trace by running task with --trace)
** [out :: xxxxxxxxx-host-machine] twitter/bootstrap/modal
command finished in 10400ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment