ruby on rails - Capistrano: Don't know how to build task 'assets:precompile' -
ruby on rails - Capistrano: Don't know how to build task 'assets:precompile' -
i trying utilize capistrano deploying rails app. if seek run "cap production deploy", error "don't know how build task 'assets:precompile'"
if run "rake assets:precompile" on server, same error.
gemfile:
source 'https://rubygems.org' # bundle border rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.1.6' # utilize sqlite3 database active record gem 'sqlite3' # utilize scss stylesheets gem 'sass-rails', '~> 4.0.3' # utilize uglifier compressor javascript assets gem 'uglifier', '>= 1.3.0' # utilize coffeescript .js.coffee assets , views gem 'coffee-rails', '~> 4.0.0' # utilize jquery javascript library gem 'jquery-rails' # turbolinks makes next links in web application faster. read more: https://github.com/rails/turbolinks gem 'turbolinks' # build json apis ease. read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.0' # bundle exec rake doc:rails generates api under doc/api. gem 'sdoc', '~> 0.4.0', group: :doc # spring speeds development keeping application running in background. read more: https://github.com/rails/spring gem 'spring', group: :development # utilize capistrano deployment gem 'capistrano', '~> 3.1' gem 'capistrano-bundler'#, '~> 1.1.2' gem 'capistrano-rails'#, '~> 1.1.1' gem 'capistrano-rbenv', '~> 2.0'
capfile:
# load dsl , setup stages require 'capistrano/setup' # includes default deployment tasks require 'capistrano/deploy' require 'capistrano/rbenv' require 'capistrano/bundler' require 'capistrano/rails' require 'capistrano/rails/assets' set :rbenv_type, :user # or :system, depends on rbenv setup dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
ruby-on-rails ruby capistrano
Comments
Post a Comment