Rails, ember-cli-rails gem -


i tried deploy rails & ember-cli application vps capistrano. have integrated ember-cli rails using ember-cli-rails gem. problem happens when capistrano wants assets:precompile. throwing error embercli rails requires ember app have addon. in case, able run assets:precompile on local machine , on server in released directory without problem. on server have installed `nodejs , npm.

deploy.rb

lock '3.1.0' set :application, 'application name' set :repo_url, 'git address' set :deploy_to, 'server side address' set :linked_files, %w{config/database.yml} set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system} namespace :deploy  desc 'restart application'   task :restart   on roles(:app), in: :sequence, wait: 5        end end  after :publishing, 'deploy:restart'  after :finishing, 'deploy:cleanup'  after :restart, :clear_cache on roles(:web), in: :groups, limit: 3, wait: 10   end end end 

capfile

require 'capistrano/setup' require 'capistrano/deploy' require 'capistrano/bundler' require 'capistrano/rails' require 'capistrano/rvm' set :rvm_type, :user set :rvm_ruby_version, '2.2.0' dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r } 

related gems

gem 'rails', '4.2.0' gem 'capistrano', '~> 3.1.0' gem 'capistrano-bundler', '~> 1.1.2' gem 'capistrano-rails', '~> 1.1.1' gem 'capistrano-rvm', github: "capistrano/rvm" 

any appreciated.

i fixed problem adding tasks deploy.rb file.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -